• 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: Cocoa application running very slow under 64 bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa application running very slow under 64 bit


  • Subject: Re: Cocoa application running very slow under 64 bit
  • From: Frank Illenberger <email@hidden>
  • Date: Thu, 11 Sep 2008 18:52:07 +0200


Am 11.09.2008 um 18:15 schrieb Bill Bumgarner:

On Sep 11, 2008, at 8:47 AM, Frank Illenberger wrote:
As I understand it, try/catch blocks should be very fast (zero cost) in the 64 bit evironment. As I can't observe the generation of any exceptions, there has to be some other reason for the slow performance. I can't find any documentation about objc_addExceptionHandler, so I don't know if it is only called when there are exceptions. Telling from the Shark trace, I guess the time is spent generating backtraces. But for what purpose?

A little more information.

C++ exceptions and, under the modern ABI, Objective-C exceptions are extremely cheap to set up (@try), but expensive to @throw and @catch.

When the @throw happens, there is a heavy cost to generating the bits necessary to properly unwind the stack.

Unfortunately, the AppKit has an issue where it causes the unwind info to be generated as a normal part of its operation (without throwing an exception).

Thus, certain AppKit operations in 64 bit can be quite slow at this time.

Thanks for this important information. Is there any hope that this issue will be fixed for Leopard or should we hold back our 64 bit versions until Snow Leopard?


Cheers

Frank

_______________________________________________

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: 
 >Cocoa application running very slow under 64 bit (From: Frank Illenberger <email@hidden>)
 >Re: Cocoa application running very slow under 64 bit (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Cocoa application running very slow under 64 bit (From: Frank Illenberger <email@hidden>)
 >Re: Cocoa application running very slow under 64 bit (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Cocoa application running very slow under 64 bit (From: Frank Illenberger <email@hidden>)
 >Re: Cocoa application running very slow under 64 bit (From: Matt Gough <email@hidden>)
 >Re: Cocoa application running very slow under 64 bit (From: Frank Illenberger <email@hidden>)
 >Re: Cocoa application running very slow under 64 bit (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: NSArrayController fetchPredicate behaving badly
  • Next by Date: creating new instance of coredata entity
  • Previous by thread: Re: Cocoa application running very slow under 64 bit
  • Next by thread: Re: Cocoa application running very slow under 64 bit
  • Index(es):
    • Date
    • Thread