[Python-Dev] extremely slow exit for program having huge (45G) dict (python 2.5.2)
Nick Coghlan
ncoghlan at gmail.com
Sun Dec 21 01:14:44 CET 2008
Tim Peters wrote:
> If that is the case here, there's no evident general solution. If you
> have millions of objects still alive at exit, refcount-based
> reclamation has to visit all of them, and if they've been swapped out
> to disk it can take a very long time to swap them all back into memory
> again.
In that case, it sounds like using os._exit() to get out of the program
without visiting all that memory *is* the right answer (or as right an
answer as is available at least).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-Dev
mailing list