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

What about forcing everything to be in the same compilation unit? Is this ever worth it?


If you have a hot loop that calls a function repeatedly, you will often find the compiler more easily inlines everything if it's in one compilation unit. So yes, it can be worth it.




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

Search: