Re: Turning off the garbage collector for Xcode 3.0
Re: Turning off the garbage collector for Xcode 3.0
- Subject: Re: Turning off the garbage collector for Xcode 3.0
- From: "Clark Cox" <email@hidden>
- Date: Fri, 1 Aug 2008 20:38:45 -0700
On Fri, Aug 1, 2008 at 5:26 PM, <email@hidden> wrote:
> Hi all, We experience a serious performance drop when building a big project
> (contains about 500 C++ source files, 10 subprojects, and 10-12 targets)
> using Xcode. We used both Shark and the sample command line tool to analyze
> what's actually getting on, and it turned out Xcode wasted a quarter of CPU
> time doing some stupid work on a generation of snapshots
Snapshots are not generated unless you ask for them.
> even if nothing is
> being done and the project is just opened, other quarter of time was wasted
> by the garbage collector itself.
The work done by the garbage collector has to be done one way or
another. If not running under GC, that same work would be spread
throughout your program in the retain/release calls, as well as the
autorelease pool tracking.
> The same happens when using xcodebuild to
> build our project.
If this is true, then it can't possibly be the garbage collector, as
xcodebuild doesn't use garbage collection.
> We have a big suspicion a generation of the mentioned
> snapshots gets fixed in Xcode in the nearest future, since the odds are
> Apple does not care about it and it does nothing in this direction,
If you are seeing this a lot, then please file bugs at
<http://bugreport.apple.com/>. If you don't, then there no way that
the proper engineers will ever know that something is wrong in the
first place (it's hard to care about something that you don't know
exists).
> it makes
> things even worse (Mac Pro just sucks on Xcode 3.2) perhaps assuming serious
> projects (which contain lots of C++ source files) are not being built using
> Xcode,
Virtually everything at Apple is built using Xcode, and the vast
majority of Mac applications outside of Apple are also built using
Xcode.
> but it is suitable/applicable just for simple "Hello world!"
> applications.
Claiming that Xcode is only appropriate for simple applications is
rather insulting to the people who spend their time writing Xcode.
> Th us, we would like to ask you whether we able to TURN OFF
> the garbage collector and safe some processor resources for execution of
> Xcode's frond end which does the real work.
No, you cannot turn off GC. Additionally, I doubt that you'd save any
resources if you did.
> At the early beginning when
> Xcode 3.0 was beta and shipped within Leopard seeds it was possible to turn
> off the garbage collector by creation of special files in /etc or so, just
> can't recall exactly, but it stopped working in one of seeds closer to the
> final one.
Indeed, it stopped working because it is no longer supported.
> Please help us, since we just can't stand watching how Xcode
> makes our Mac Pro machines behave like iMac G3. Thanks and sorry for being
> so pathetic. - Konstantin Korzun Senior Software Engineer KMS
--
Clark S. Cox III
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