Staging
v0.8.1
https://github.com/python/cpython
Revision 5cbd8331ff567ee568713dc5e63820ffb453ac4b authored by Raymond Hettinger on 22 May 2015, 07:41:57 UTC, committed by Raymond Hettinger on 22 May 2015, 07:41:57 UTC
Replaces the PyList_GET_ITEM and PyList_SET_ITEM macros with normal array
accesses.  Replace the siftup unpredicatable branch with arithmetic.
Replace the rc == -1 tests with rc < 0.  Gives nicer looking assembly
with both Clang and GCC-4.9.  Also gives a small performance both for both.
1 parent 35e24a5
History
Tip revision: 5cbd8331ff567ee568713dc5e63820ffb453ac4b authored by Raymond Hettinger on 22 May 2015, 07:41:57 UTC
Issue #24221: Small optimizations for heapq.
Tip revision: 5cbd833
File Mode Size
Python.asdl -rw-r--r-- 4.6 KB
acceler.c -rw-r--r-- 3.3 KB
asdl.py -rw-r--r-- 12.6 KB
asdl_c.py -rwxr-xr-x 42.5 KB
bitset.c -rw-r--r-- 1.0 KB
firstsets.c -rw-r--r-- 2.8 KB
grammar.c -rw-r--r-- 6.8 KB
grammar1.c -rw-r--r-- 1.3 KB
listnode.c -rw-r--r-- 1.2 KB
metagrammar.c -rw-r--r-- 2.4 KB
myreadline.c -rw-r--r-- 6.1 KB
node.c -rw-r--r-- 4.4 KB
parser.c -rw-r--r-- 11.6 KB
parser.h -rw-r--r-- 1.0 KB
parsetok.c -rw-r--r-- 10.5 KB
parsetok_pgen.c -rw-r--r-- 35 bytes
pgen.c -rw-r--r-- 17.5 KB
pgenmain.c -rw-r--r-- 3.8 KB
printgrammar.c -rw-r--r-- 2.9 KB
tokenizer.c -rw-r--r-- 52.3 KB
tokenizer.h -rw-r--r-- 3.7 KB
tokenizer_pgen.c -rw-r--r-- 36 bytes

back to top