3 ms·
I'd guess using typed arrays or even normal arrays wouldn't slow the code much, and the slowdown will be probably a small constant factor. If the JIT detects t
by jampekka 2y ago
I'd guess using typed arrays or even normal arrays wouldn't slow the code much, and the slowdown will be probably a small constant factor.
If the JIT detects the array as homogenous it will compile it to low level array access. JS JITs are very good.