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

the CPU branch predictor is so many levels down it will have almost no discernible effect on anything you might call a branch in Python code. Even a statement like "a = 1" likely executes a few tens if not a few hundred branches

That is not to say aiming for generally unbranchy code is not a good thing - that often implies well designed code and well chosen data structures anyway



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: