News for hackers. Stuff that matters.
Re:The cost of dynamic vs. static dispatch in C++ by army on Thursday December 05, 2013 @01:14PM (#6855993)
This is less of a problem for systems with JIT compilation (including Java, C#, etc). They can recompile the code at runtime, which allows some nice tricks for virtual calls. They can turn a virtual call into a regular call with inline caching (http://en.wikipedia.org/wiki/Inline_caching), or can even compile a specialized version of the code for a given type and inline the entire virtual function.

There are no comments on this comment yet.