Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's a chart of various timings here [1] and objc_msgSend is actually pretty efficient (it's received a lot of optimization over the years for obvious reasons).

A cached IMP is faster than a C++ virtual method call (both of which are slower than a non-virtual method call, inline code, or a C function call of course).

[1] https://www.mikeash.com/pyblog/performance-comparisons-of-co...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: