Re: C++ exception breaks inside Apple code
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