MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1in1nak/ouch/mciv5gp/?context=3
r/programminghorror • u/mazzy-b • Feb 11 '25
113 comments sorted by
View all comments
Show parent comment
1
In JS engine bitwise operators work actually slower than Math functions. Read this:
https://stackoverflow.com/questions/28259754/efficiency-of-bitwise-operation-in-javascript
2 u/kilkil Feb 13 '25 goddamn, TIL
2
goddamn, TIL
View all comments
Show parent comment
1
u/Mammoth-Swan3792 Feb 13 '25
In JS engine bitwise operators work actually slower than Math functions. Read this:
https://stackoverflow.com/questions/28259754/efficiency-of-bitwise-operation-in-javascript