News for hackers. Stuff that matters.
Re:The cost of dynamic vs. static dispatch in C++ by andor on Thursday December 05, 2013 @01:03PM (#6855921)
The Java Hotspot VM can still optimize for this case, if the virtual call leads to only a few classes most of the time. Several virtual methods can be inlined, but of course there's still an extra step compared to static dispatch: the classes of the current object and the inlined methods have to be compared. If no matching method is inlined, control needs to be passed back to the VM.
Re:The cost of dynamic vs. static dispatch in C++ by pmjordan on Thursday December 05, 2013 @01:15PM (#6855998)
A fascinating article on this type of optimisation:

http://www.azulsystems.com/blog/cliff/2010-04-08-inline-cach...

Re:The cost of dynamic vs. static dispatch in C++ by MrBuddyCasino on Thursday December 05, 2013 @02:52PM (#6856721)
Interesting read, I didn't know that making fields final in Java does nothing for performance. Any idea what those "Generic Popular Frameworks" are? I put my money on Hibernate.