Project: titanium
Issue TIMOB-23637: Windows: Titanium object creation takes too long
I recently found that one the performance bottleneck of Titanium Windows is occurs during object creation ({{Ti.createXXX}} etc). On my Lumia 630 I observed it takes almost 1 second to create 100 proxy object, and it can be serious issue especially on app startup because Windows Phone tend to kill the app when app startup takes too long. *Sample code* {code} var start = +new Date(); for (var i = 0; i < 100; i++) { var obj = Ti.createBuffer({length: 2}); } alert((+new Date() - start) + ' msec'); {code} {code} var start = +new Date(); for (var i = 0; i < 100; i++) { var obj = Ti.UI.createLabel({text:'test ' + i}); } alert((+new Date() - start) + ' msec'); {code}
Story points: 8