• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to ease the burden on the Garbage Collector?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to ease the burden on the Garbage Collector?


  • Subject: How to ease the burden on the Garbage Collector?
  • From: Gabriel Zachmann <email@hidden>
  • Date: Thu, 8 Oct 2009 16:29:31 +0200

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!

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).

Is there anything I can do to alleviate the burden on the GC?
(The code was written under 10.5 in the reference-counted model.)

Regards,
Gabriel.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: How to ease the burden on the Garbage Collector?
      • From: Shawn Erickson <email@hidden>
    • Re: How to ease the burden on the Garbage Collector?
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Hardware UUID in New Mac Book Pro
  • Next by Date: Re: Autorelease pool
  • Previous by thread: Re: Hardware UUID in New Mac Book Pro
  • Next by thread: Re: How to ease the burden on the Garbage Collector?
  • Index(es):
    • Date
    • Thread