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

IIUC, the optimisation is the same, but all it does is tell the compiler what the hot path is likely to be and so the code won't 'jmp' to it; the instructions are likely to be in I-cache.


gcc (maybe other compilers too) can put the cold path to a separate section, so it further improves happy-path code cache locality.




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

Search: