How to Read Bytes from a file
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Wed Mar 7 00:42:23 EST 2007
En Tue, 06 Mar 2007 17:07:45 -0300, Matthias Julius <jnews at julius-net.net>
escribió:
> "Gabriel Genellina" <gagsl-py2 at yahoo.com.ar> writes:
>
>> Dictionary access is highly optimized in Python. In fact, using a
>> precomputed dictionary is about 12 times faster:
>
> Why using a dictionary and not a list?
Because a dictionary is slower? :)
Using a similar test as previously posted, list access is about 15% faster
than dictionary access for such small range.
--
Gabriel Genellina
More information about the Python-list
mailing list