Push Ifs Up And Fors Down
Open link in next tab
Push Ifs Up And Fors Down
https://matklad.github.io/2023/11/15/push-ifs-up-and-fors-down.html
A short note on two related rules of thumb.
https://matklad.github.io/2023/11/15/push-ifs-up-and-fors-down.html
A short note on two related rules of thumb.
!programming
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
:::spoiler Rules
:::
Follow the wormhole through a path of communities !webdev@programming.dev
Modern optimizing compilers are magical. I would need to check assembly but I would actually expect the if to be hoisted out of the loop entirely to relieve pressure on the branch predictor.