[Python-Dev] suggestion for smarter garbage collection in function of size (gc.set_collect_mem_growth(2))

Andrea Arcangeli andrea at suse.de
Wed Dec 28 15:57:23 CET 2005


On Wed, Dec 28, 2005 at 05:52:06AM -0800, Aahz wrote:
> If you feel comfortable with C code, the best way to get this to happen
> would be to make the change yourself, then test to find out what effects

I'm more confortable with C code than with python code, that's not the
problem (infact I think that everyone should be confortable with C ;).
The only problem is that my time on this is quite limited, but I will be
really be happy to give it a try.

> this has on Python (in terms of speed and memory usage and whether it
> breaks any of the regression tests).  Once you've satisfied yourself
> that it works, submit a patch, and post here again with the SF number.

Ok.

> Note that since your tunable parameter is presumably accessible from
> Python code, you'll also need to submit doc patches and tests to verify
> that it's working correctly.

Ok.

If there's anybody willing to suggest the files to hook into (the
location where the interpreter allocates all anonymous memory) and how
to invoke gc.collect() from C, that would help. thanks!


More information about the Python-Dev mailing list