• 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: Leopard performance penalty (3x slower), NSPopAutoreleasePool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leopard performance penalty (3x slower), NSPopAutoreleasePool


  • Subject: Re: Leopard performance penalty (3x slower), NSPopAutoreleasePool
  • From: j o a r <email@hidden>
  • Date: Sat, 17 Nov 2007 11:12:27 -0800


On Nov 17, 2007, at 10:53 AM, Gerd Knops wrote:

I have a complex Cocoa application, 10.4 SDK (no GC etc). Loading a document (and performing a large number of calculations triggered by that) takes 4 seconds under Tiger.

Under Leopard, loading the same document takes 8 seconds until it displays, after which the application is unresponsive for another 4 seconds, the entire time being spent in NSPopAutoreleasePool.

I presume that performance penalty is largely due to Leopards more complex memory handling. Has anybody else observed this, and knows of any strategies to minimize that overhead?


What "more complex memory handling" are you referring to? Do you compare loading the document between Tiger and Leopard on the same machine (same hardware and amount of RAM)?

You should probably investigate trying to create fewer temporary objects, and fewer autoreleased objects, as a way to fix this problem on your end.

You may also want to file a performance regression bug report with Apple. I would suggest including: Shark Time Profile, Shark Time Profile (All Thread States), System Profile, top output. Make sure to sample the whole duration of loading the document, and include reports from both Tiger and Leopard.

j o a r


_______________________________________________

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: Leopard performance penalty (3x slower), NSPopAutoreleasePool
      • From: Gerd Knops <email@hidden>
References: 
 >Leopard performance penalty (3x slower), NSPopAutoreleasePool (From: Gerd Knops <email@hidden>)

  • Prev by Date: Leopard performance penalty (3x slower), NSPopAutoreleasePool
  • Next by Date: Safe asynchronous file copies
  • Previous by thread: Leopard performance penalty (3x slower), NSPopAutoreleasePool
  • Next by thread: Re: Leopard performance penalty (3x slower), NSPopAutoreleasePool
  • Index(es):
    • Date
    • Thread