[Python-Dev] Complexity documentation request (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Tue Mar 11 21:28:56 CET 2008
- Previous message: [Python-Dev] Complexity documentation request
- Next message: [Python-Dev] Complexity documentation request
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Complexity documentation request
- Next message: [Python-Dev] Complexity documentation request
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]