Re: GC pros and cons
Re: GC pros and cons
- Subject: Re: GC pros and cons
- From: Rob Keniger <email@hidden>
- Date: Fri, 26 Jun 2009 12:20:48 +1000
On 26/06/2009, at 10:58 AM, Chris Idou wrote:
Bill.... I don't know if this was discussed before, but could you
discuss the lack of GC on the iPhone?
I suspect it is for performance reasons. The Objective-C garbage
collector is designed to run in a separate thread on the Mac, which
means it can run on its own CPU core separate to the main thread.
In single-core systems, even on the Mac, performance of Garbage
Collected code is very poor because the collector has to share CPU
time with the main thread. When Xcode 3 (a GC app) was first released
in the Leopard betas there were still quite a few people with single-
CPU PowerPC laptops who found that Xcode could barely keep up with
their typing. On dual-core machines it was fine.
The iPhone has a single-core CPU and a slow one at that, so while I am
sure that GC could be turned on, it would probably make developers
very unhappy.
--
Rob Keniger
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden