Re: How to ease the burden on the Garbage Collector?
Re: How to ease the burden on the Garbage Collector?
- Subject: Re: How to ease the burden on the Garbage Collector?
- From: Shawn Erickson <email@hidden>
- Date: Thu, 8 Oct 2009 08:22:11 -0700
On Thu, Oct 8, 2009 at 7:29 AM, Gabriel Zachmann <email@hidden>wrote:
> I'm writing a simple screensaver that is basically kind of a slide show
> screensaver.
> (So it loads many images over time, but needs to keep only 2-3 in memory at
> any given time.)
>
> I am using Core Animation for some animations on the images.
>
> I've just profiled the screensaver under 10.6 using Shark on a dual-core
> MacBookPro.
>
> It seems that about 20% of the time is spent in the Garbage Collector
> thread!
Are you sure you aren't just seeing the GC thread sitting and waiting for
something to do? What are the "hot" methods/functions you see related to the
GC thread? (many folks misread what Shark is telling them...)
-Shawn
_______________________________________________
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