Populating a dictionary, fast

Paul Rubin http
Sat Nov 10 23:54:49 CET 2007


Michael Bacarella <mbac at gpshopper.com> writes:
> Is there a fast, functionally equivalent way of doing this?
> 
> (Yes, I really do need this cached.  No, an RDBMS or disk-based hash
> is not fast enough.)

As Steven says maybe you need to add more ram to your system.  The
memory overhead of dictionary cells is considerable.  If worse comes
to worse you could concoct some more storage-efficient representation.



More information about the Python-list mailing list