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 rhettinger
Recipients gvanrossum, matthiastroffaes, pitrou, rhettinger, skip.montanaro
Date 2009-08-15.22:06:15
SpamBayes Score 2.572666e-07
Marked as misclassified No
Message-id <1250373977.52.0.413904489245.issue6695@psf.upfronthosting.co.za>
In-reply-to
Content
> The reason is that users expect gc.collect() to make 
> its best to diminish memory use.

I thought GC was expected to eliminate reference cycles.
Perhaps there ought to be a separate API, such as 
sys.clear_freelists(), to eliminate other memory use when 
needed.  Putting this in GC seems like feature creep and
has negative performance implications (long running programs
will likely find an immediate need to reallocate the freed
members).


> Allocated items in the free list may keep a pymalloc arena occupied.
> * Clearing the free lists may give back memory to the OS earlier.

These are both good reasons to expose the functionality somewhere.
History
Date User Action Args
2009-08-15 22:06:17rhettingersetrecipients: + rhettinger, gvanrossum, skip.montanaro, pitrou, matthiastroffaes
2009-08-15 22:06:17rhettingersetmessageid: <1250373977.52.0.413904489245.issue6695@psf.upfronthosting.co.za>
2009-08-15 22:06:15rhettingerlinkissue6695 messages
2009-08-15 22:06:15rhettingercreate