News for hackers. Stuff that matters.
Re:Java is very fast, if you don’t create many objects by ehvatum on Monday September 12, 2022 @12:11PM (#32812467)
> Java can take away the virtual dispatch if it finds a single implementation of interface or single concrete class of an abstract class which is not possible with c++ (where-in we'll always go thru the vtable which almost always resolves to a cache miss)

C++ LTO makes devirtualization practical to the point that your browser is benefitting from it right now: https://news.ycombinator.com/item?id=17504370

There are no comments on this comment yet.