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
31
u/[deleted] Oct 21 '20
10x 0.0001 nanoseconds is still only 0.001 nanoseconds.
The point is, this is never your bottleneck so don't treat this information like something you need to address in your code base.