[Python-Dev] Complexity documentation request

"Martin v. Löwis" martin at v.loewis.de
Tue Mar 11 21:28:56 CET 2008


> Can you really say that you don't make any design
> decisions early on based on the assumption that
> dict lookup will almost certainly be a lot faster
> than searching a list?

I follow the advice Guido gave: I use the data
structure that will make my code shortest and easiest
to read, regardless of performance consequences
initially. Premature optimization is the root of
all evil.

Regards,
Martin


More information about the Python-Dev mailing list