Dictionary, integer compression
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Wed Apr 29 20:06:47 EDT 2009
Dinesh:
> If you store a large number of integers (keys and values) in a
> dictionary, do the Python internals perform integer compression to
> save memory and enhance performance? Thanks
Define what you mean with "integer compression" please. It has several
meanings according to the context. For example this one:
http://en.wikipedia.org/wiki/Golomb_coding
(The answer is probably negative).
Bye,
bearophile
More information about the Python-list
mailing list