commit | 01c9f8c35f583338e3638906ceeef9d2f29a0254 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Fri Mar 26 11:16:55 2004 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Fri Mar 26 11:16:55 2004 +0000 |
tree | 46ba5f9ad31ed05eb22195b0e20ccd78b90e2bc5 | |
parent | 707483fdef1dcb91e5239f7dd16db509ce2737c7 [diff] |
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"