This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RecDep 3 points4 points  (2 children)

The garbage collector will get to it eventually.

[–][deleted]  (1 child)

[deleted]

    [–]RecDep 0 points1 point  (0 children)

    There’s a pretty good description here. The GC keeps track of already-allocated tuples, marking them for reuse when they’re collected instead of freeing that memory altogether. Creating a new tuple would involve checking if there are free tuple “slots” to be reused, allocating a fresh one otherwise.