2 ms·
>the react-ish pseudocode probably doesn't make nearly as many allocations as a naive reading of the code might expect. Who knows, if V8 manages it to turn it
by torginus 5y ago
>the react-ish pseudocode probably doesn't make nearly as many allocations as a naive reading of the code might expect.
Who knows, if V8 manages it to turn it into a for-loop?
I don't, but after a quick googling, as of 2018, it certainly didn't:
https://github.com/dg92/Performance-Analysis-JS https://github.com/dg92/Performance-Analysis-JS
The problem with JS is that the execution model is so nebulous, that performance advice basically boils down to - trust in Google.