Huge dictionary, 1 min to create, 6 to delete

Emile van Sebille emile at fenx.com
Thu Aug 31 03:12:52 EDT 2000


Can you pare the code down to an example the
exhibits the problem and post it.  When I create
a dictionary with 1M entries and exit, I experience
no delay.

--

Emile van Sebille
emile at fenx.com
-------------------


"haaserd" <haaserd at yahoo.com> wrote in message
news:39AD8BDA.84DB5BB3 at yahoo.com...
> As a learning exercise, I decided to use the python
> dictionary in a program which tries to create crossword
> puzzles (solutions less clues).  In doing so I created a
> dictionary with about 1,000,000 entries.  This takes about
a
> minute on my AMD 700 processor, with very little(no) disk
> activity.
>
> My problem is that when the program ends, it takes about 6
> minutes, during which there is very heavy disk activity.
As
> a test, I did a dict.clear(), and had the same result.
>
> Is this the garbage collection problem mentioned briefly
in
> a few discussions?  Or am I just hitting a Windows 98
paging
> problem unrelated to python?  I have 128 MB of memory.
>
> TIA
>
> Roger Haase
>





More information about the Python-list mailing list