i have a big dictionary...:)

gabor farkas gabor at z10n.net
Sat Jun 26 20:51:18 CEST 2004


i have a big dictionary...

i have a 6mb textfile,
from which i build a dictionary the following way:
the first word of a line is the key, the rest is the value.
and i fill all the lines into the dictionary (it contains around
100*1000 lines)

now when it's in memory, it uses around 60megabytes of memory (measured
from "ps aux | grep python" :)

how could i lower this memory requirement?

is there a simple database-format, something small.... so i don't have
to keep the whole dictionary in memory?


More information about the Python-list mailing list