{ "id": "172698", "key": "TIMOB-26626", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20429", "name": "Release 7.5.1", "archived": false, "released": true, "releaseDate": "2019-02-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-12-11T20:33:31.000+0000", "created": "2018-12-04T10:06:47.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-06-11T14:17:08.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Android apps are taking much longer to load than they previously did. A default classic app is taking ~ 1.9 secs to load whereas a default alloy app takes ~1.6 secs. I am using Ti SDK 7.5.0. In the past i have developed apps using Ti SDK 5.5.1 and they used to load in under 0.5 secs. However it's significantly higher now. Is there any way this load time can be reduced?", "attachment": [], "flagged": false, "summary": " Android apps are taking much longer to load than they did on previous sdks", "creator": { "name": "pritish.george", "key": "pritish.george", "displayName": "pritish.george", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pritish.george", "key": "pritish.george", "displayName": "pritish.george", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Run on Ti SDK 7.5.0", "comment": { "comments": [ { "id": "444203", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "When creating a new empty app (appc new) and run it I see the following:\r\n\r\n*Start flow*\r\n{code:java}\r\n[INFO] TiApplication: (main) [0,0] checkpoint, app created.\r\n[INFO] TiApplication: (main) [95,95] Titanium 7.4.1 (2018/10/08 10:38 undefined)\r\n[INFO] MultiDex: VM with version 2.1.0 has multidex support\r\n[INFO] MultiDex: Installing application\r\n[INFO] MultiDex: VM has multidex support, MultiDex support library is disabled.\r\n[INFO] TiApplication: (main) [30,125] Analytics have been disabled\r\n[INFO] TiApplication: (main) [2253,2378] Titanium Javascript runtime: v8\r\n[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[WARN] art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable\r\n[INFO] TiApplication: (main) [369,369] Analytics have been disabled\r\n[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.miga.bench.Test_benchActivity@2284777\r\n[WARN] InputMethodManager: com.miga.bench spent 122ms to start processing msg:100\r\n{code}\r\n\r\nthe *Analytics have been disabled* part is called twice. After the first one it says *checkpoint, on root activity create, savedInstanceState: null* and then after the second one it says *checkpoint, on root activity resume. activity = com.miga.bench.Test_benchActivity@2284777*.\r\n\r\nI'm not sure if that is actually calling it twice (starts it and the resumes it) at a cold start. (same with 7.5.0, I've just tested 7.4.1 before).\r\n\r\nA restart (open app, close it with the back button, reopen it again) is faster and the Analytics string is only shown once. Removing the app out of the Android launcher and then restart it will be slower again and the output is as above.\r\n\r\n*Bootstrap part*\r\nAlso while investigating the listview.js part in another ticket I could see that the bootstrap process (analysing the childtemplates,...) is done every app start. Not sure how heavy this process is but could that be cached?", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-12-04T10:14:14.000+0000", "updated": "2018-12-04T10:14:14.000+0000" }, { "id": "444340", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/10518", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-12-07T21:35:24.000+0000", "updated": "2018-12-07T21:35:24.000+0000" }, { "id": "444500", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "7_5_X: https://github.com/appcelerator/titanium_mobile/pull/10530", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-12-11T19:06:58.000+0000", "updated": "2018-12-11T19:06:58.000+0000" }, { "id": "444504", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nPR's merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-12-11T20:33:27.000+0000", "updated": "2018-12-11T20:33:27.000+0000" }, { "id": "444510", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 7.5.1.v20181211123622 & 8.0.0.v20181211123751.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-12-11T23:18:15.000+0000", "updated": "2018-12-11T23:18:15.000+0000" }, { "id": "448986", "author": { "name": "pritish.george", "key": "pritish.george", "displayName": "pritish.george", "active": true, "timeZone": "America/Los_Angeles" }, "body": "App load time using SDK 8.0.1 GA is still an average of 2 secs for Default Alloy and Classic Projects.\r\nI don’t think the issue should be closed. The app load time is too long. Especially since it was ~ 0.5 secs using older sdks(5.5.1).\r\nIs there any way to get the app load time down?\r\n", "updateAuthor": { "name": "pritish.george", "key": "pritish.george", "displayName": "pritish.george", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-11T14:17:08.000+0000", "updated": "2019-06-11T14:17:08.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }