Y
Hacker News
new
|
ask
|
show
|
jobs
by
r-spaghetti
1017 days ago
Or delete them or set to null inside the loop?
1 comments
pkolaczk
1017 days ago
Setting to null doesn't release the memory. It only erases the reference. You still need to wait for the GC to complete.
link
baq
1017 days 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.)
link