Re: xcodebuild 80% faster than Xcode?
Re: xcodebuild 80% faster than Xcode?
- Subject: Re: xcodebuild 80% faster than Xcode?
- From: Chris Espinosa <email@hidden>
- Date: Mon, 3 May 2010 13:49:26 -0700
On May 3, 2010, at 1:01 PM, Dave Keck wrote:
> Today I've been trying to get my build times down, and I noticed that
> xcodebuild builds my project in 51 seconds when invoked from the
> command line. The exact same build commands (placed into a "run
> script" build phase of an empty target) take 93 seconds to complete
> when building from within Xcode.
>
> Any idea of what might be going on?
The most likely thing is that Xcode has an algorithm to use as many processor cores as it can during building, provided that enough memory is available to run the job without swapping. Because of the dynamic nature of compilation, predictions are crude and approximate.
It may mean that when building from the command line you have enough free memory to use more cores, but when building from the IDE the resident memory taken by the IDE prevents you from using as many cores, so you get less parallelism and builds take longer.
That's one guess. On our standard benchmarks we don't find that building inside the IDE is appreciably slower than building at the command line except in the case where a project generates thousands of warnings or errors, in which case the display of those in the IDE is time-consuming.
Chris _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden