4 ms·
This is why the graphics APIs are C. Also, if you're calling an Objective-C method and dynamic dispatch is causing measurable performance issues, you can cache
by atnan 15y ago
This is why the graphics APIs are C.
Also, if you're calling an Objective-C method and dynamic dispatch is causing measurable performance issues, you can cache a pointer to the C function that backs the method (called the IMP) via the class_getMethodImplementation() runtime API.