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

It basically never should unless the inliner made a terrible judgement. Devirtualizing in C++ can remove 3 levels of pointer chasing, all of which could be cache misses. Many optimizations in modern compilers require the context of the function to be inlined to make major optimizations, which requires devirtualization. The only downside is I$ pressure, but this is generally not a problem because hot loops are usually tight.


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

Search: