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

It shouldn't if the control flow is actually identical.

E.g. note how both the switch- and if-based functions generate the same code using a lookup table here:

https://godbolt.org/z/qoT3M7r5G



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

Search: