{ "id": "162788", "key": "AC-4380", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-09-27T19:48:20.000+0000", "created": "2016-08-24T11:04:36.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-09-27T19:48:20.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "Hi\r\n\r\nThe problem I am facing is : line \"Alloy.createController\" takes 11 ms to execute on Android platform where as takes 200 ms on windows for our application.\r\nSimilarly the line \"windows.open\" takes 11ms on Android and 78ms on windows platform.\r\n\r\nThis reduces the response time of the application on windows platform.\r\n\r\nSample Application : \r\n\r\ntest.xml \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\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\nindex.xml \r\n \r\n \r\n \r\n\r\n", "attachment": [], "flagged": false, "summary": "Windows Phone : Alloy.createController taking too much time in windows.", "creator": { "name": "neha", "key": "neha", "displayName": "Neha", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "neha", "key": "neha", "displayName": "Neha", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK : 5.4.0\r\nWindows Phone 10", "comment": { "comments": [ { "id": "395516", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, This time difference is because of how fast the native platform handles Javascript conversion to native code. When coding for multi-platform, each platform will have a slight time difference in performance. There is not much to do here. Usually, the difference in performance in multi-platform is negligible. Make sure your code is not causing memory licks. Follow our guide here:http://docs.appcelerator.com/platform/latest/#!/guide/Cross-Platform_Mobile_Development_In_Titanium for multi platform coding. And, Here is for Windows platform development:http://docs.appcelerator.com/platform/latest/#!/guide/Windows_Platform_Overview\r\n\r\nThanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-09-07T15:39:39.000+0000", "updated": "2016-09-07T15:39:39.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }