Re:Chris Lattner on Swift and dynamic dispatch
by Rusky on Sunday December 13, 2015 @05:23PM
(#10728237)
Inlining is often called the mother of all optimizations. On its own, it doesn't gain you much compared to any other optimization, but once it's done it enables much, much more.
There's a reason languages like C that default to static dispatch on value types are so much faster without much effort.
I suppose there is a bigger gain where you can inline static functions or optimize the calling convention.