3 ms·
The memory arena is a typed array, which cannot contain object references and so does not need to be scanned by the GC. If you keep JavaScript object allocatio
by modeless 15y ago
The memory arena is a typed array, which cannot contain object references and so does not need to be scanned by the GC.
If you keep JavaScript object allocations to a minimum, then GC pauses will be short and infrequent. This could actually be useful to write a game render loop or any other code that can't tolerate pauses.