3 ms·
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 Obj
by DaiPlusPlus 6y 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).
- rudedogg 6y agoI haven't read it, but this article might address your performance question: https://www.mikeash.com/pyblog/friday-qa-2017-06-30-dissecting-objc_msgsend-on-arm64.html https://www.mikeash.com/pyblog/friday-qa-2017-06-30-dissecti...
- Someone 6y agoTypical Objective-C code is mostly C (and sometimes C++). It doesn’t use message-passing in the hot loops.