• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Building more files than CPUs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building more files than CPUs


  • Subject: Re: Building more files than CPUs
  • From: "William H. Schultz" <email@hidden>
  • Date: Mon, 13 Feb 2006 09:27:43 -0800

I had to restart Xcode for these changes to take effect.

On my iMac Core Duo with 2GB of RAM, our project takes:

3:03 with 2 processes
2:47 with 4 processes
2:45 with 6 processes

Looking at the processor usage, this could probably be dropped to under two minutes if targets could be built in parallel. If Xcode knew that certain dependencies are only applicable at the linking stage, then things like precompiling the headers could run in parallel. Or, targets that only have two files could compile while another is linking.

Of course, if the CPU platform weren't limited, I could also distribute compiles to two 1.25GHz G4s.

Hank Schultz
Cedrus Corporation
http://www.cedrus.com/



On Feb 9, 2006, at 2:49 PM, Nathan Roberts wrote:

On Feb 9, 2006, at 4:34 PM, Steve Mills wrote:

On Feb 9, 2006, at 14:07, Chris Espinosa <email@hidden> wrote:

Try (from the command line) defaults read com.apple.Xcode
PBXNumberOfParallelBuildSubtasks  This should be unset, and the
default is "number of CPUs in my machine."  If it's set to, say, 8,
then there's your answer.

No, that value does not exist on my iMac. I sure would like to know how to make it do 6 at a time again. It only did that for part of one day.



From the command line:

defaults write com.apple.XCode PBXNumberOfParallelBuildSubtasks 6

You might have to restart XCode after that, I'm not sure. I tried it with XCode not running, and then launched it. It does now build 6 at once. I imagine, though, that this will increase overall build time; I don't know by how much.

Nate
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40cedrus.com


This email sent to email@hidden



_______________________________________________
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


References: 
 >Re: Building more files than CPUs (From: Steve Mills <email@hidden>)
 >Re: Building more files than CPUs (From: Nathan Roberts <email@hidden>)

  • Prev by Date: Script step with administrative privileges
  • Next by Date: Faulty apple_ref string when reindexing docs
  • Previous by thread: Re: Building more files than CPUs
  • Next by thread: Re: Building more files than CPUs
  • Index(es):
    • Date
    • Thread