On Sun, 11 Nov 2007 04:32:44 -0000, Steven D'Aprano
<> declaimed the following in
comp.lang.python:
>
> real 35m52.334s
> user 1m17.663s
> sys 0m16.758s
>
>
> Notice that the dict is completely read into memory in just two and a
> half minutes. The script then tries to delete the dict, and 32 minutes
> later is still struggling. That's the point I got sick of waiting and
> interrupted the script.
>
Sure seems a problem somewhere... Out of insanity I just ran your
exact programs -- on a 32-bit WinXP Pro machine with an ActiveState
Python 2.4.x release. 2GB physical RAM, 1.5GB swap.
>pythonw -u "Dload.py"
Starting at Sun Nov 11 10:25:22 2007
Line 0
Line 1000000
Line 2000000
Line 3000000
Line 4000000
Line 5000000
Line 6000000
Line 7000000
Line 8000000
Items in dict: 8191180
Completed import at Sun Nov 11 10:26:08 2007
Starting to delete dict...
Completed deletion at Sun Nov 11 10:26:12 2007
Finishing at Sun Nov 11 10:26:12 2007
>Exit code: 0
Peak commit charge: 1437724K, which may have just been large enough
to start swapping when one accounts for the OS, Firefox, Eudora, and
Agent (as user applications -- I won't bother to track down the
background processes).
--
Wulfraed Dennis Lee Bieber KD6MOG
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff:
web-)
HTTP://www.bestiaria.com/