[TIMOB-12400] CLI: iOS sim builds about twice as slow in new CLI than with old one.
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-01-27T02:26:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.0.2, Release 3.1.0, 2013 Sprint 02 JS, 2013 Sprint 02 |
Components | CLI |
Labels | cli-review, qe-port |
Reporter | Tony Lukasavage |
Assignee | Chris Barber |
Created | 2013-01-23T22:49:33.000+0000 |
Updated | 2014-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
JSON Source
You'll be happy to know, you're not crazy. First time compile:
Subsequent compile times:
Something is definitely wrong.
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.
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3796 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3797
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
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