Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4372] Windows: terrible performance of opening new screen

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2016-08-29T15:58:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterZakhar Zhuravlev
AssigneeShak Hossain
Created2016-08-24T08:58:41.000+0000
Updated2016-08-29T15:58:55.000+0000

Description

Creating and opening new screen takes a lot of time. Exactly - creating structure of screen. I want to provide my example. *index.js:*
function onUpdate() {
	var win2 = Alloy.createController('test', {
		start: (new Date()).getTime()
	}).getView();
        win2.open();
}
$.win.open();
*index.xml:*
<Alloy>
   <Window id="win" backgroundColor='black'>
        <Button width='100dp' height='50dp' bottom="50dp" backgroundColor='red' onClick='onUpdate' />
	</Window>
</Alloy>
I attached test screen (real, but a bit cutted, screen from real app), and app.tss file. Example is simple. Just tap on red button on index screen and observe how long will take opening test screen. For my device it takes 2 seconds!! If tap on back button and open screen again than it;s taking 1,5 seconds. It's absolutelly terrible performance.

Attachments

FileDateSize
app.tss2016-08-24T08:55:14.000+00006057
test.js2016-08-24T08:54:49.000+0000301
test.tss2016-08-24T08:54:58.000+00006472
test.xml2016-08-24T08:55:06.000+00002417

Comments

  1. Zakhar Zhuravlev 2016-08-26

    with 6.0.0.v20160825201507 it becames much much much better. Almost comparable with android and ios!
  2. Sharif AbuDarda 2016-08-29

    Thanks for letting us know. Closing the ticket.

JSON Source