[Python-Dev] Proposal: Run GC less often

"Martin v. Löwis" martin at v.loewis.de
Sun Jun 22 22:36:19 CEST 2008

> Another problem is that the program could be slowly leaking and a
> full collection will never happen.

I don't think that will be possible. If the program slowly leaks,
survivor objects leave the middle generation, and account towards
the 10%. As the count of objects in the oldest generation doesn't
change, collection will eventually occur.

However, it may occur much later than it currently does, if you have
many objects on the heap, and each middle collection only has few
survivors. One may argue that if the machine had the space to keep
N objects in memory, it probably can also keep 1.1N objects in memory.


More information about the Python-Dev mailing list