3 ms·
I like immutable objects. But my worry is it will lead to lots of small objects being created just to get destroyed right away, putting lots of pressure on GC.
by fqsxr 9y ago
I like immutable objects. But my worry is it will lead to lots of small objects being created just to get destroyed right away, putting lots of pressure on GC. I wonder if this is a known issue in the immutable js community.
- awestroke 9y agoWhen you insert into an immutablejs collection, a copy is not made. It's reusing a reference to the old object. That means iteration is a bit slower while insertion and similar operations is faster, which is an acceptable tradeoff
- sr464 9y agoGC?
- flaque 9y agoGarbage Collection
- romuloab42 9y agoGarbage Collector
- fiatjaf 9y agoGameCube