[Numpy-discussion] sort bug

tan2 tan2tan2@gmail....
Thu Apr 26 15:37:05 CDT 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://projects.scipy.org/pipermail/numpy-discussion/attachments/20070426/4f7845c7/attachment.html 

More information about the Numpy-discussion mailing list