I am writing some real-time audio processing code, which is to be executed in an audio unit's render callback.
This thread is at the highest priority level the system recognises.
Apple instructs to minimise the amount of processing that goes on in this call. One of their recommendations is to avoid Objective-C method invocation.
But why?
What happens when an Objective-C method is invoked? what is the actual overhead?