iterating through humongously large key lists!!

Juan Huertas jhg at galdon.com
Wed Apr 25 06:37:46 EDT 2001


You can try to store the dict in a b-tree file (bsddb) using cPcikle and
access the keys sequentialy whit the next or prev methods.


Mark blobby Robinson <m.1.robinson at herts.ac.uk> escribió en el mensaje de
noticias 3AE69EF6.46C74A31 at herts.ac.uk...
> Is it is possible to interate through the keys of a dictionary object
> without loading the entire key list into memory? I am working with a
> situation where I need to interate through a dictionary containly
> routinely millions and potentually many millions of keys. Not only is it
> painfully slow to generate the list, but it eats into my memory
> significantly too. Please tell me there is a better way.
>
> Blobby
>





More information about the Python-list mailing list