top | item 37430286

(no title)

r-spaghetti | 2 years ago

Or delete them or set to null inside the loop?

discuss

order

pkolaczk|2 years ago

Setting to null doesn't release the memory. It only erases the reference. You still need to wait for the GC to complete.

baq|2 years ago

Side note: it might work in a refcount GC like CPython. That isn’t node though. (It only might because it doesn’t guarantee that memory is actually reused.)