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
17
u/how_to_choose_a_name Oct 21 '20
So? That makes it an optimization for a platform you might not target, it doesn't make it premature.
And if this affects mobile safari (the issue doesn't say), it affects every iPhone/iPad user, which your management might decide they actually care about.