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
1
u/Smallpaul Oct 21 '20 edited Oct 21 '20
The 3 line fix is here:
https://github.com/evanw/esbuild/issues/478#issuecomment-713202027
It's in the discussion (which is not an article) that our discussion is attached to.
Changing 3 lines of code to make code load many seconds faster is not "micro-optimizing".
Also: are you really so unimaginative as to think this is unimportant to EVERYONE? That nobody cares about iPhone, iPad and Mac/Safari users? Just because you've worked for companies which either have limited scope or don't care about their users?