Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: