{ "id": "161664", "key": "TIMOB-23618", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-11-12T14:54:21.000+0000", "created": "2016-07-11T09:03:42.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-11-12T14:54:21.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": [], "description": "Alloy.createController() takes 200 ms to execute on windows and 11 ms on Android platform.\r\nSimilarly the line \"windows.open\" takes 11ms on Android and 78ms on windows platform.\r\nThis reduces the response time of the application on windows platform. \r\n\r\nWe've used following code to measure the time taken by particular line to execute:\r\n{code}\r\ntest.xml\r\n \r\n \r\n \r\n\r\n\r\ntest.js\r\nfunction openWindow(){ \r\n$.test.open(); \r\n} \r\nexports.openWindow = openWindow;\r\n\r\nindex.js\r\nfunction openView(){ \r\nTi.API.info(\"Step 1 \" +Date.now()); \r\nvar controllerView = Alloy.createController('test'); \r\nTi.API.info(\"Step 2 \" + Date.now()); \r\ncontrollerView.openWindow(); \r\nTi.API.info(\"Step 3 \" + Date.now()); \r\n}\r\n$.index.open();\r\n\r\nindex.xml\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n*Steps to test:*\r\n1. Run the sample app in windows platform and observe the output of ti.API.info\r\n2. Again run the app on android platform and compare both the output.\r\n", "attachment": [], "flagged": false, "summary": "Windows: Alloy.createController() takes much time to execute in windows environment. ", "creator": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "environment": "Appcelerator Command-Line Interface, version 5.2.2\r\nOperating System\r\n Name = Microsoft Windows 8.1 Enterprise\r\n Version = 6.3.9600\r\n Architecture = 32bit\r\n # CPUs = 4\r\n Memory = 3.9GB\r\n\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.4\r\n Core Package = 5.2.2\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\n node-appc Version = 0.2.31\r\n\r\nTi SDK: 5.4.0.v20160705213725", "comment": { "comments": [], "maxResults": 5, "total": 5, "startAt": 0 } } }