2 ms·
> Now some JIT impls like tracing JIT replace virtual function calls with if-elses. I think it was about 2010ish when I first noticed a C compiler (Microsoft's
by asveikau 6y ago
> Now some JIT impls like tracing JIT replace virtual function calls with if-elses.
I think it was about 2010ish when I first noticed a C compiler (Microsoft's) doing this optimization for function pointer calls. Might have been a link time optimization, because caller and callee were in different compilation units.