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

Antoine Pitrou solipsis at pitrou.net
Sun Dec 21 01:35:40 CET 2008

Mike Coleman <tutufan <at> gmail.com> writes:
> Just to clarify, I didn't gc.disable() to address this problem, but
> rather because it destroys performance during the creation of the huge
> dict.  I don't have a specific number, but I think disabling gc
> reduced construction from something like 70 minutes to 5 (or maybe
> 10).  Quite dramatic.

There's a pending patch which should fix that problem:



More information about the Python-Dev mailing list