Skip to content

Optimize heapq.nlargest/nsmallest by switching to sorting when k is large relative to n #8917

Optimize heapq.nlargest/nsmallest by switching to sorting when k is large relative to n

Optimize heapq.nlargest/nsmallest by switching to sorting when k is large relative to n #8917