Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4380] Windows Phone : Alloy.createController taking too much time in windows.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNot Our Bug
Resolution Date2016-09-27T19:48:20.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy
Labelsn/a
ReporterNeha
AssigneeShak Hossain
Created2016-08-24T11:04:36.000+0000
Updated2016-09-27T19:48:20.000+0000

Description

Hi The 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. Similarly the line "windows.open" takes 11ms on Android and 78ms on windows platform. This reduces the response time of the application on windows platform. Sample Application : test.xml test.js function openWindow(){ $.test.open(); } exports.openWindow = openWindow; index.js function openView(){ Ti.API.info("Step 1 " +Date.now(); var controllerView = Alloy.createController('test'); Ti.API.info("Step 2 " + Date.now(); controllerView.openWindow(); Ti.API.info("Step 3 " + Date.now(); } $.index.open(); index.xml

Comments

  1. Sharif AbuDarda 2016-09-07

    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 Thanks.

JSON Source