Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
AJRF
5y ago
0 comments
Save
Share
The compiler does some very fancy stuff with objc_msgSend to make it fast, and the selectors are interned.
https://www.mikeash.com/pyblog/objc_msgsends-new-prototype.h...
0 comments
1 comments · 1 top-level
top
newest
oldest
donarb
5y ago
Objective-C had an IMP pointer, essentially a function pointer. If you needed to send a message to an object in a tight loop, you could extract the pointer before the loop and use it inside.
j
/
k
navigate · click thread line to collapse