• 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: C++ exception breaks inside Apple code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ exception breaks inside Apple code


  • Subject: Re: C++ exception breaks inside Apple code
  • From: "Michael A. Crawford" <email@hidden>
  • Date: Sat, 10 Oct 2009 14:51:21 -0400

That is an excellent point. Especially considering the performance sensitive nature of the code involved. I want my audio analysis code to run as quickly and efficiently as possible.

-Michael

On Oct 10, 2009, at 2:44 PM, Jens Alfke wrote:


On Oct 10, 2009, at 11:12 AM, Michael A. Crawford wrote:

Yeah, when I recompiled some CoreAudio code that worked flawlessly in Leopard using Snow-Leopard my initial thought was that something in CoreAudio got broke. Scared the he11 out of me until I realized what was happening.

I used to file bug reports on this kind of thing, back when I was still at Apple. Besides just the annoyance to C++ developers using the framework, it's also bad for performance — the "zero overhead" exception model assumes exceptions aren't thrown in normal usage, so it's only 'try' that has zero overhead; when the 'throw' occurs the runtime has to start loading in symbol tables and parsing its way up the stack looking for 'catch' blocks, and that's very expensive.


—Jens

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: C++ exception breaks inside Apple code (From: "Michael A. Crawford" <email@hidden>)
 >Re: C++ exception breaks inside Apple code (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: C++ exception breaks inside Apple code
  • Next by Date: Re: C++ exception breaks inside Apple code
  • Previous by thread: Re: C++ exception breaks inside Apple code
  • Next by thread: Re: C++ exception breaks inside Apple code
  • Index(es):
    • Date
    • Thread