I recently started using the Xcode Instrumentation to analyze my app's performance bottle-necks, and I discovered that I'm seeing some noticeable delays between when I trigger an event and when the event handler is finally executed (roughly 20ms).
I don't have a ton of experience writing multi-threaded applications, so I'm wondering if there's any tips on how to make this more responsive. Is it true that triggering an event spins up a new thread? Could this delay be caused by this process?
Thanks!