On 13 Sep 2006, at 22:00, Chris Espinosa wrote:
On Sep 13, 2006, at 11:08 AM, Wain wrote:
I have recently moved from XCode 2.3 to 2.4, I run it on a dual 1.8GHz G5, so I have 2 processors...
Compiling is much slower (maybe twice as long to compile) in XCode 2.4 as 2.3, I think it is now only using a single thread to perform the compilation.
From the 2.4 release notes:
'Xcode now uses the number of active CPUs instead of the number of physically available CPUs when determining the number of parallel build processes to run.'
Not really sure how to take that, what is an 'active' CPU exactly?? The options to change this kind of stuff have been removed from the prefs in 2.4 aswell.
So, is there some hidden setting/pref I can change to get back to compiling with 2 threads?
No, that change is simply to reenable our looking at the hidden setting/pref that you can use to shut it down to 1 processor when you have 2. It's very unlikely that you've done this.
There are a lot of things that can contribute to longer build times when upgrading Xcode. Check to see whether your project:
- is now building with dwarf symbols rather than stabs (slower but gives more accurate debugging in most cases)
using stabs (I didn't change it from the default when the proj was created but good info, thanks)
- is now building Universal instead of single architecture (takes twice as long, because, well, it's building twice)
building debug so only ppc at the moment
- (less likely) if you have 512K memory, swapping is increasing
hmmm, what type of memory do you mean? L2 Cache??
- (less likely) if you have <1Gb free disk space, swapping is slower because of tight disk space
loads of free disk space (>36Gb)
- all your precompiled headers have to be rebuilt because of the new compiler version
surely it would only need to be done once after upgrading?
If it's taking twice as long, I'd check to see whether you're building Universal now.
Chris
Thanks for the education,