Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
- Subject: Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
- From: Kyle Sluder <email@hidden>
- Date: Sun, 20 Jun 2010 09:27:09 -0700
On Jun 20, 2010, at 2:14 AM, Brian Willoughby <email@hidden> wrote:
> On Jun 20, 2010, at 02:05, Motti Shneor wrote:
>> When is the Obj-C runtime loaded?
>> How fast is its initialization?
>> Is it loaded only once for the host application, or is it part of my own code?
>> how is it attached to my code?
>> Is the code compiled for .mm any slower?
>
> Unlike C++, ObjC does not generate any code behind the scenes. The only overhead is the method call itself, which adds only a few cycles above the typical i386 function call. There is a potential look-up hit on the first call, but ObjC offers means to obtain the function address in advance, if you want to avoid that overhead.
Most importantly, objc_msgSend can block. So don't do any ObjC stuff in a realtime thread.
--Kyle Sluder _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden