i have a big dictionary...:)

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


hi,

i have a big dictionary...

well...
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?

thanks,
gabor





More information about the Python-list mailing list