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

Objective-C message sends are not much slower than C++ virtual calls:

http://mikeash.com/pyblog/performance-comparisons-of-common-...

And that's from 2008. Clang's improved it a lot.



Actually, that's on an iPhone. Here's the article for OSX from the start of 2008 (two months before your link), where the cached message call comes out faster than the virtual calls, and the non-cached is ~ 4.5x slower instead of ~ 2x on the iPhone:

http://mikeash.com/pyblog/performance-comparisons-of-common-...




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

Search: