• 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: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm
      • From: "Paul Sanders" <email@hidden>
References: 
 >Question: What is the impact of changing .cpp AudioUnitEffect source to .mm (From: Motti Shneor <email@hidden>)
 >Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm (From: Brian Willoughby <email@hidden>)

  • Prev by Date: Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
  • Next by Date: Re: Question: What is the impact of changing .cpp AudioUnitEffect
  • Previous by thread: Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
  • Next by thread: Re: Question: What is the impact of changing .cpp AudioUnitEffectsource to .mm
  • Index(es):
    • Date
    • Thread