dictionary speed

Ype Kingma ykingma at accessforall.nl
Fri Jul 13 17:29:08 EDT 2001


"doug s." wrote:
> 
> hi all,
> 
> is there any speed differential to be aware or with nested
> dictionaries? that is, does the position of data matter. for example,
> if i need to access certain data quickly and often, is it best to
> structure things so that it is all near the top level?
> 

What precisely do you mean with 'nested dictionaries' and 'top level'?

The kind of speed up you can get by restructuring data structures
to access often needed data quickly is not normally needed in
a scripting language.
The easiest way to do that in Python would be
to use separate dictionary for faster access, ako. cache.

Regards,
Ype



More information about the Python-list mailing list