Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
chrisdevereux
· 12y ago · 0 comments
Anyone know how Swift might achieve its claimed speedup vs. Objective-C? I can't see how it could get the advertised numbers without method inlining, which appears to be incompatible with the dynamic object model that it inherits from Objective-C
Comments
[–]
cwp
12y ago
Why would method inlining be incompatible with dynamic dispatch?
[–]
chrisdevereux
OP
12y ago
I was thinking more about runtime method replacement.
[–]
jonhendry
12y ago
Less ambiguity, allowing the compiler to optimize more?