Memory limit to dict?

Felipe Almeida Lessa felipe.lessa at gmail.com
Tue Apr 11 14:12:41 EDT 2006


Em Ter, 2006-04-11 às 19:45 +0200, Peter Beattie escreveu:
> I was wondering whether certain data structures in Python, e.g. dict,
> might have limits as to the amount of memory they're allowed to take up.
> Is there any documentation on that?
> 
> Why am I asking? I'm reading 3.6 GB worth of BLAST output files into a
> nested dictionary structure (dict within dict ...). Looks something like
> this:
> 
> { GenomeID:
>   { ProteinID:
>     { GenomeID:
>       { ProteinID, Score, PercentValue, EValue } } } }

I don't have the answer to your question and I'll make a new one: isn't
the overhead (performance and memory) of creating dicts too large to be
used in this scale? 

I'm just speculating, but I *think* that using lists and objects may be
better.

My 2 cents,

-- 
Felipe.




More information about the Python-list mailing list