Re: Objective-C in a Time Constraint Thread
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