4 ms·
> it looks like the latter isn't really Sorry, I don't quite understand: running through a sparse array - running through the "undefined" - is much faster than
by mdp2021 5y ago
> it looks like the latter isn't really
Sorry, I don't quite understand: running through a sparse array - running through the "undefined" - is much faster than running through a dense array. What have I missed?
- vorticalbox 5y agothey are trying to show that looping a dense array is not much slower than looping the sparse, I just did a test on FF and is 78% slower to loop the dense vs the sparse https://jsbench.me/ukkvgj16gg/1 https://jsbench.me/ukkvgj16gg/1