]> granicus.if.org Git - python/commit
Simple optimizations:
authorRaymond Hettinger <python@rcn.com>
Fri, 26 Mar 2004 11:16:55 +0000 (11:16 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 26 Mar 2004 11:16:55 +0000 (11:16 +0000)
commit01c9f8c35f583338e3638906ceeef9d2f29a0254
tree46ba5f9ad31ed05eb22195b0e20ccd78b90e2bc5
parent707483fdef1dcb91e5239f7dd16db509ce2737c7
Simple optimizations:
* pre-build a single identity function for the fixup function
* pre-build membership tests in dictionaries instead of in-line tuples
* assign len() to a local variable
* assign append() methods to a local variable
* use xrange() instead of range()
* replace "x<<1" with "x+x"
Lib/sre_compile.py