]> granicus.if.org Git - python/commit
Speed up the most egregious "if token in (long tuple)" cases by using
authorGuido van Rossum <guido@python.org>
Sat, 24 Aug 2002 06:54:19 +0000 (06:54 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 24 Aug 2002 06:54:19 +0000 (06:54 +0000)
commit9d6897accc49f40414fbecafeb1c65562c6e4647
treee8c26f80a6e2dc56004450ea807c56e7e3e813b2
parent6248f441ea3ca34ed3306eb8634e6815a42611b4
Speed up the most egregious "if token in (long tuple)" cases by using
a dict instead.  (Alas, using a Set would be slower instead of
faster.)
Lib/tokenize.py