3 ms·
As modeless said, the memory arena is a typed array. It contains numbers, not JS references. The GC does not look at the contents of typed arrays at all. Strin
by azakai 15y ago
As modeless said, the memory arena is a typed array. It contains numbers, not JS references. The GC does not look at the contents of typed arrays at all.
String creation does create JS objects, yes, as does creating closures. It is hard to avoid garbage entirely, that's true.