Re: GC pros and cons
Re: GC pros and cons
- Subject: Re: GC pros and cons
- From: Chris Idou <email@hidden>
- Date: Thu, 25 Jun 2009 20:19:31 -0700 (PDT)
I still use XCode in one location where I work on a core-solo Mini. Performance is good. No problems at all, no pauses.
________________________________
From: Rob Keniger <email@hidden>
To: cocoa-dev Dev <email@hidden>
Sent: Friday, 26 June, 2009 12:20:48 PM
Subject: Re: GC pros and cons
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
Access Yahoo!7 Mail on your mobile. Anytime. Anywhere.
Show me how: http://au.mobile.yahoo.com/mail
_______________________________________________
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