On Oct 8, 2009, at 7:29 AM, Gabriel Zachmann wrote:

It seems that about 20% of the time is spent in the Garbage Collector thread!

Which is a bit surprising to me, since I don't allocate a large number of objects (I think) -- just a small number of large objects (the images).

The collector only chews CPU when there are lots of allocation events (and, hopefully, deallocation events) that are causing the collector to believe it needs to do work. Or when something is triggering the collector manually really often.

Have a look at ObjectAlloc & ObjectGraph in Instruments. That should give you an idea if there are lots and lots of allocation events occurring and, if so, what they are. From there, it is a matter of minimizing the number of allocations occurring.

b.bum

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to