Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23637

Windows: Titanium object creation takes too long

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.4.0
    • Fix Version/s: Release 6.0.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      2016 Sprint 15 SDK

      Description

      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

      var start = +new Date();
      for (var i = 0; i < 100; i++) {
          var obj = Ti.createBuffer({length: 2});
      }
      alert((+new Date() - start) + ' msec');
      

      var start = +new Date();
      for (var i = 0; i < 100; i++) {
          var obj = Ti.UI.createLabel({text:'test ' + i});
      }
      alert((+new Date() - start) + ' msec');
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                kiguchi Kota Iguchi
                Reviewer:
                Gary Mathews
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code