Post

✨ Big O ✨ Let me take you on a visual introduction to what big O notation is in my new blog post: samwho.dev/big-o. With big O notation you can better understand how algorithms will perform in practice, finding orders of magnitude improvements often with very simple changes to your code.

I only call sum once so I don’t think this technique applies. I’m running the code on a pool of web worker threads so there’s a bunch of overhead in posting messages back and forth and then with OS-level thread scheduling.

0 reposts1 like

All of that pales in comparison to the fact Firefox sometimes takes 4-8x longer (e.g 8 seconds for the 2nd bar). Couldn’t for the life of me figure out why. Tried all sorts. Solar flares, innit.