• 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 17:47:04 +0200

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?

8.9%	libgcc_s.1.dylib	_Unwind_GetIPInfo
7.6%	libgcc_s.1.dylib		_Unwind_GetIPInfo
7.6%	libgcc_s.1.dylib	  		_Unwind_Backtrace
7.6%	libobjc.A.dylib	   			objc_addExceptionHandler
7.5%	Unknown Library	      				_CFDoExceptionOperation
7.2%	Unknown Library	      					_NSAppKitLock
1.5%	Unknown Library	     						 -[NSView nextKeyView]
1.2%	Unknown Library	    						 -[NSView _primitiveSetNextKeyView:]

Am 11.09.2008 um 15:07 schrieb Matt Gough:


On 11 Sep 2008, at 14:49, Frank Illenberger wrote:

I breaked at objc_addExceptionHandler and it gets called a lot. Here are some example traces:

...

I guess this is normal behavior as these are regular cocoa calls. But why does this consume so much CPU time?

Cheers


Dunno, maybe now that the Obj-C exception ABI is the same as the C++ one for 64-bit apps, there is a lot of extra stuff that needs preparing in case the exception is going to be caught by some C++ code.


Matt

_______________________________________________

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: Cocoa application running very slow under 64 bit
      • From: Bill Bumgarner <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>)

  • Prev by Date: Re: BOOL array
  • Next by Date: Re: NSTask is Weird
  • 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