I a profiling my iPhone application on target, and according to Instruments 65% of the time is spent in mach_msg_trap
.
I have a background thread that runs-forever and send results back to the main thread using performSelectorOnMainThread:withObject:waitUntilDone:
, aproximately every 2 seconds. I am not waiting until done.
// Fredrik