Hacker News new | ask | show | jobs
by DaiPlusPlus 2023 days ago
Could there also be hardware acceleration or built-in support for Objective-C's message-passing? I've always wondered how Apple gets decent performance with Objective-C in-spite of MP given it its complexity compared to vtables (and vtables have the advantage of being easily cachable in L1/L2).
2 comments

I haven't read it, but this article might address your performance question: https://www.mikeash.com/pyblog/friday-qa-2017-06-30-dissecti...
Typical Objective-C code is mostly C (and sometimes C++). It doesn’t use message-passing in the hot loops.