[Python-Dev] Proposal: Run GC less often
"Martin v. Löwis"
martin at v.loewis.de
Sun Jun 22 07:13:15 CEST 2008
> What happens if the program enters a phase where it's not
> producing any new cyclic garbage, but is breaking references
> among the old objects in such a way that cycles of them
> are being left behind? Under this rule, the oldest
> generation would never be scanned, so those cycles would
> never be collected.
Correct. However, this is the case already today.
> Wouldn't it be simpler just to base the collection frequency
> directly on the total number of objects in the heap?
Using what precise formula?
Regards,
Martin
More information about the Python-Dev
mailing list