• Raymond Hettinger's avatar
    Issue #24221: Small optimizations for heapq. · 5cbd8331
    Raymond Hettinger yazdı
    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.
    5cbd8331
listobject.h 2.83 KB