• Raymond Hettinger's avatar
    Simple optimizations: · 01c9f8c3
    Raymond Hettinger yazdı
    * 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"
    01c9f8c3
sre_compile.py 15.9 KB