commit | 5cbd8331ff567ee568713dc5e63820ffb453ac4b | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Fri May 22 00:41:57 2015 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Fri May 22 00:41:57 2015 -0700 |
tree | c1b75bc79b07dead4ee4ec38c06c7596be5c8233 | |
parent | 35e24a50c569a822c3379ba05714d9bffa3550e5 [diff] |
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.