[Python-Dev] extremely slow exit for program having huge (45G) dict (python 2.5.2)

Michael Foord fuzzyman at voidspace.org.uk
Sat Dec 20 21:25:42 CET 2008


Leif Walsh wrote:
> On Sat, Dec 20, 2008 at 3:04 PM, M.-A. Lemburg <mal at egenix.com> wrote:
>   
>> These long exit times are usually caused by the garbage collection
>> of objects. This can be a very time consuming task.
>>     
>
> In that case, the question would be "why is the interpreter collecting
> garbage when it knows we're trying to exit anyway?".
>
>   

Because finalizers are only called when an object is destroyed presumably.

Michael

-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog




More information about the Python-Dev mailing list