Re: Realtime, GC and ObjC (Was Re: Opinion on managed memory and garbage collection)
Re: Realtime, GC and ObjC (Was Re: Opinion on managed memory and garbage collection)
- Subject: Re: Realtime, GC and ObjC (Was Re: Opinion on managed memory and garbage collection)
- From: Andy Lee <email@hidden>
- Date: Tue, 23 Jun 2009 13:11:38 -0400
On Tuesday, June 23, 2009, at 12:29PM, "Andrea Gozzi" <email@hidden> wrote:
>> On Jun 23, 2009, at 1:39 AM, Chris Idou wrote:
[...]
>> One of the concerns I see with GC is "I can't use it because my app
>> is realtime or near-realtime". In this case, GC or not is moot and
>> the real issue is that you can't use Objective-C for realtime uses.
>
>First hand feedback: as an experiment we migrated our realtime-audio
>apps from retain/release to GC a couple weeks ago while at WWDC. The
>performance we see in the resulting garbage-collected apps is *very*
>good, and completely different than what we saw when we tried GC back
>with 10.5.0 (no comment).
>
>After spending another few days checking things under load with Shark
>and Instruments we came to the conclusion that GC is performing too
>well not to use it, and we are switching to it for good. Once we
>remove the crust of retain/release techniques from our code we expect
>to see a net performance/stability gain....... and you should not
>underestimate how psychologically exhilarating is to delete that
>complex and now useless retain-cycles graph handler you spent 2 months
>of your life to write and debug years ago :)
Thanks for this data point! Some months ago, bbum posted a good rundown of the merits of GC, including the fact that its performance would be improving and would be taking advantage of multiple cores. What you observed seems to validate this information.
--Andy
_______________________________________________
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