Performance isn't one dimensional. Maybe the benchmarks you're looking at aren't gated on method call performance. Maybe the authors of whatever benchmark you're looking at wrote final manually. Maybe they used freestanding functions instead of methods. Maybe your benchmarks aren't calling functions at all. Who knows?
The point is that anyone who has worked on compilers for OO languages will tell you the same thing about devirtualization. This stuff goes back to Smalltalk implementations in the 80s.
Re:App Developers on Swift Evolution
by mpweiher on Wednesday December 23, 2015 @07:11PM
(#10786391)
> Maybe the benchmarks you're looking at aren't gated on method call performance.
Most real world programs aren't gated on method call performance.
And things have changed since the 80ies. Heck, even in the 90ies, Squeak Smalltalk was plenty fast for media work using a plain byte-code interpreter (no JIT), because the heavy lifting was done in primitives. Just like Tcl was used in supercomputing.
Well, Swift as it is (e.g. before adopting final by default) has great performance.
So what gives?