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

Branchy checks for error codes -- the alternative to using exceptions -- are not statically predictable. Each such branch is dynamically predictable, but burns one of a strictly limited number of available branch prediction slots.

So, while the successfully predicted branches are pretty cheap, many fewer can be predicted. Synthetic benchmarks generally have many fewer branches to predict than live code has.



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

Search: