Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12400] CLI: iOS sim builds about twice as slow in new CLI than with old one.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-01-27T02:26:15.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.0.2, Release 3.1.0, 2013 Sprint 02 JS, 2013 Sprint 02
ComponentsCLI
Labelscli-review, qe-port
ReporterTony Lukasavage
AssigneeChris Barber
Created2013-01-23T22:49:33.000+0000
Updated2014-06-19T12:44:16.000+0000

Description

problem

Running a basic Titanium app, without a full rebuild, on iOS is about twice as fast with the old CLI as it is with the new CLI. On my machine, old CLI builds would take about 3-8 seconds. The new CLI builds take about 10-15 seconds. Obviously these times will vary based on your machine's capabilities. This only appears to affect iOS builds as I believe Android builds are still deferring to the old python system.

reproduce

Execute steps 2-5 for both TiSDKs 3.0.0.GA and 2.1.4.GA.

Create a new Titanium project (default 2-tabbed is fine)

build it once for iphone simulator

Make a small code change and build it again

Repeat step 3 a couple times to get an average of times

The average of the 2.1.4.GA times should be significantly lower than those of the 3.0.0.GA SDK. Be sure these are not full rebuilds when getting an average.

Comments

  1. Chris Barber 2013-01-24

    You'll be happy to know, you're not crazy. First time compile:
       2.1.4.GA python 14.13 seconds
       3.1.0 python    13.79 seconds
       3.1.0 node.js   11.9 seconds
       
    Subsequent compile times:
       2.1.4.GA python 3.19 seconds
       3.1.0 python    3.21 seconds
       3.1.0 node.js   7.4 seconds
       
    Something is definitely wrong.
  2. Tony Lukasavage 2013-01-24

    Oh I'm crazy, but it's good to know this isn't one of the symptoms. Let me know if there's anything I can do to help test any timing on any future changes to address this.
  3. Chris Barber 2013-01-26

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3796 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3797
  4. Chris Barber 2013-01-26

    To test: 1) create a project 2) build the project for ios simulator: titanium build -p ios 3) build it again... should take a second or so
  5. Olga Romero 2013-02-05

    Tested with: Titanium Studio, build: 3.0.2.201302011646 Titanium SDK, build: 3.0.2.v20130201161712 Devices: iPad4 iOS 6.1 iOS 6.1 Simulator Finished building the application in 16s 815ms Finished building the application in 851ms Finished building the application in 838ms

JSON Source