diff options
author | Raymond Hettinger <python@rcn.com> | 2015-05-22 07:41:57 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-05-22 07:41:57 (GMT) |
commit | 5cbd8331ff567ee568713dc5e63820ffb453ac4b (patch) | |
tree | c1b75bc79b07dead4ee4ec38c06c7596be5c8233 /Objects | |
parent | 35e24a50c569a822c3379ba05714d9bffa3550e5 (diff) | |
download | cpython-5cbd8331ff567ee568713dc5e63820ffb453ac4b.zip cpython-5cbd8331ff567ee568713dc5e63820ffb453ac4b.tar.gz cpython-5cbd8331ff567ee568713dc5e63820ffb453ac4b.tar.bz2 |
Issue #24221: Small optimizations for heapq.
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.
Diffstat (limited to 'Objects')
0 files changed, 0 insertions, 0 deletions