3 JavaScript Performance Mistakes You Should Stop Doing https://hackernoon.com/3-javascript-performance-mistakes-you-should-stop-doing-ebf84b9de951 … Looping or Duplicating Arrays, Iterating Objects Praise for for/while (as JS engines optimized for them), newfangled stuff bad. Which is normal, as we can't optimize what isn't used.
-
-
Replying to @codepo8
10k objects × 1000 values, and the difference between the fastest and slowest is ~300 microseconds. Yeah, I think this is negligible
3 replies 0 retweets 2 likes -
Replying to @simevidas @codepo8
I worry about the message to prefer basic-for-loop over the more modern for-of loop. Surely
@v8js has solved this.1 reply 0 retweets 4 likes
Replying to @robpalmer2 @simevidas and
We did, for real-world code. How we measure: https://v8.dev/blog/real-world-performance …
Of course, it's always possible to construct a microbenchmark that favors one over the other. It seems that's what happened here.
@bmeurer was just telling me about another potential for-of improvement in V8…
6:18 AM - 26 Oct 2018
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.