Staging
v0.5.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

README

back to top