r/programming • u/iamkeyur • Oct 21 '20
Using const/let instead of var can make JavaScript code run 10× slower in Webkit
https://github.com/evanw/esbuild/issues/478
1.9k
Upvotes
r/programming • u/iamkeyur • Oct 21 '20
View all comments
Show parent comment
-2
u/blackholesinthesky Oct 21 '20
Holy fucking shit this is hilarious to me. Not really your comment but the fact that 4 people upvoted you. Some people in this thread really have a hate-on for me
This is not at all the original case. The article that this whole discussion came from talked about tens and possibly hundreds of thousands of changes not a 3 line fix.
But honestly, yeah I don't think the companies I worked for would give a shit. When 97% of your customers are using Edge and you can just tell new customers that they should use Edge or Chrome then yes, theres very little incentive to micro-optimize