[Numpy-discussion] sort bug

tan2 tan2tan2 at gmail.com
Thu Apr 26 16:37:05 EDT 2007


> Just doing argsort() on the whole array is faster (up until about 1e6
> elements)
> because it does everything in C whereas heapq will create a lot of Python
> objects because it is treating the array as a general Python container.
>
>

That's a good point. I wasn't thinking about the efficiency issue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20070426/4f7845c7/attachment.html>


More information about the NumPy-Discussion mailing list