Exponential time increase in garbage collection

Aahz aahz at pythoncraft.com
Sat May 18 10:29:04 EDT 2002


In article <mailman.1021716090.21250.python-list at python.org>,
Sean McGrath  <sean.mcgrath at propylon.com> wrote:
>
>Depending on the machine the program is run on, there comes a point where
>deleting them from the dictionary takes a long time. Plotting the numbers
>shows a relationship which is distinctly exponential in shape.

Yup.  This is being worked on for Python 2.3, for the case where the
tracked objects are tuples.  If it's not tuples causing the problem for
you, you'll need to manually control gc (or simply disable it if you
know that you don't have any cycles).
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"In the end, outside of spy agencies, people are far too trusting and
willing to help."  --Ira Winkler



More information about the Python-list mailing list