Improve the memory performance and speed of heapq.nsmallest() by using
an alternate algorithm when the number of selected items is small relative to the full iterable.
R
Raymond Hettinger committed
b25aa36f83a3cd2200f2bc479e594458e27794a3
Parent: 2e66940