[issue34210] Small improvements in heapq (refactoring)

2018-07-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Additional notes: * reversed() is preferred over the range(n-1, -1, -1) style both for clarity and speed. If reversed is slower, then it would be mean that something is sly wrong with range.__reversed__ which should be able to iterate backwards as fast

<    1   2