efficient partial sort in Python ?

Dan Stromberg drsalists at gmail.com
Mon Aug 18 17:42:27 EDT 2014


On Mon, Aug 18, 2014 at 10:18 AM, Chiu Hsiang Hsu <wdv4758h at gmail.com> wrote:
> I know that Python use Timsort as default sorting algorithm and it is efficient,
> but I just wanna have a partial sorting (n-largest/smallest elements).

Perhaps heapq with Pypy?  Or with nuitka?  Or with numba?



More information about the Python-list mailing list