[Python-Dev] Proposal: Run GC less often (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Sun Jun 22 22:36:19 CEST 2008
- Previous message: [Python-Dev] Proposal: Run GC less often
- Next message: [Python-Dev] Proposal: Run GC less often
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
Regards, Martin
- Previous message: [Python-Dev] Proposal: Run GC less often
- Next message: [Python-Dev] Proposal: Run GC less often
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]