This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients gvanrossum, matthiastroffaes, pitrou, rhettinger, skip.montanaro
Date 2009-08-16.14:43:53
SpamBayes Score 5.9108725e-08
Marked as misclassified No
Message-id <1250434019.5558.9.camel@localhost>
In-reply-to <19080.6000.580993.804289@montanaro.dyndns.org>
Content
> When did that happen?  I agree with Raymond.  The cyclic gc should just
> reclaim cycles.

People don't care about referential cycles, they care about freeing some
memory (if memory was available in infinite quantities nobody would care
about breaking cycles). That's how the API is used most of the time,
IMO. And that's why measurements of the usefulness of calling
gc.collect() are usually done in megabytes, not in number of
references :-).

So, while I agree that it sounds bizarre for the GC to do other
memory-related tasks, it's also quite practical. Besides, the GC already
has a heuristic for *when* to cleanup memory, and it makes sense to
reuse this heuristic for other memory cleanup tasks, rather than to
invent another heuristic or put the burden of the task on the user (who
usually won't even know what those freelists are).
History
Date User Action Args
2009-08-16 14:43:55pitrousetrecipients: + pitrou, gvanrossum, skip.montanaro, rhettinger, matthiastroffaes
2009-08-16 14:43:54pitroulinkissue6695 messages
2009-08-16 14:43:54pitroucreate