• 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: Objective-C in a Time Constraint Thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C in a Time Constraint Thread


  • Subject: Re: Objective-C in a Time Constraint Thread
  • From: Jonathon Mah <email@hidden>
  • Date: Tue, 28 Feb 2006 19:48:38 +1030

Hi Sekhar,

On 2006-02-28, at 09:00, john wrote:

I would be surprised if making a method call from a CoreAudio ioproc would cause an audio glitch even on slow computers. I had various levels of processing loads in CoreAudio ioprocs when I first started with CoreAudio and have gradually changed some things to lessen the load, but back I never experienced any audio glitches (even on a 500mhz G3).

It's best to plan most efficiently, but I don't think a handful of method calls is going to cause any problems.

Although I haven't used Objective-C in this scenario, my gut feeling is that John is correct. If message dispatch time does become a problem, you can instead ask the ObjC runtime to convert a method call into a function pointer. That would give the same performance as straight C, assuming you can live with less dynamism.




Jonathon Mah
email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Objective-C in a Time Constraint Thread (From: Chandrasekhar Ramakrishnan <email@hidden>)
 >Re: Objective-C in a Time Constraint Thread (From: john <email@hidden>)

  • Prev by Date: Re: List of all available classes ?
  • Next by Date: Need Help Please....Truncation Mode for Window Title
  • Previous by thread: Re: Objective-C in a Time Constraint Thread
  • Next by thread: Re: Objective-C in a Time Constraint Thread
  • Index(es):
    • Date
    • Thread