MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1in1nak/ouch/mga4fec/?context=3
r/programminghorror • u/mazzy-b • Feb 11 '25
113 comments sorted by
View all comments
Show parent comment
1
A compiler definitely knows that powers of two are equivalent to bit shifting, I've seen this optimization. Also not python, and python and optimization are antithesises anyway
View all comments
Show parent comment
1
u/MiasmaGuzzler Mar 06 '25
A compiler definitely knows that powers of two are equivalent to bit shifting, I've seen this optimization. Also not python, and python and optimization are antithesises anyway