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

This won't help everywhere, but sometimes you can give the compiler a hint that a certain branch is less likely to be taken. The computation branch is going to be slower anyway, and only happen once, so tell the compiler to assume the lookup branch will be taken most of the time.


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

Search: