2 ms·
They could all be reasonably unrolled, so it's probably something else. I expect the engine can more easily calculate the final required Array size and preallo
by lttlrck 13y ago
They could all be reasonably unrolled, so it's probably something else.
I expect the engine can more easily calculate the final required Array size and preallocate it upfront avoiding resize operation on each loop iteration. (which is anyway JS best practice when possible)