• 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
Re: Performance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Performance


  • Subject: Re: Performance
  • From: Michael Ash <email@hidden>
  • Date: Mon, 16 Nov 2009 12:19:41 -0500

On Mon, Nov 16, 2009 at 1:14 AM, Chris Carson <email@hidden> wrote:
> The application runs pretty well, and running it through the Leaks instrument there are no leaks except for 16-bytes when the application is first starting caused by IOUSBLib. However, looking at it in the Activity Monitor, the real memory used starts off at 25 MB and steadily grows to 250+ MB while the virtual memory starts off at about the same and steadily grows to about the same or sometimes close to 500MB, over the course of several minutes. This especially happens if I don't move the mouse for a while, or don't have the application in focus. As soon as a move the mouse or bring the application into focus, it's as if an autorelease pool is drained and the memory drops back down to 30-40MB real and 30-40MB virtual. This is annoying since the application hangs for 5 seconds or so when this memory draining is occurring. Has anyone dealt with this before? Any ideas on what could be causing this and how to work around it?

You're correct that it's an autorelease pool draining. Cocoa only
drains autorelease pools when an event is processed, and what it
counts as an event is not necessarily what you count as an event.

Some more info, and a possible fix, here:

http://www.mikeash.com/?page=pyblog/more-fun-with-autorelease.html

Mike
_______________________________________________

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

References: 
 >Performance (From: Chris Carson <email@hidden>)

  • Prev by Date: Creation date of Feb 14th 1946 - Why?
  • Next by Date: Re: CALayer Transitions
  • Previous by thread: Re: Performance
  • Next by thread: Re: Performance
  • Index(es):
    • Date
    • Thread