Hi Ben, Thanks for your proposal!
On Wed, Jun 14, 2023, at 03:24, Ben Weston wrote: > I wonder if you'd be receptive to a PR bringing the same change to > numpy. I do have an existing implementation in C++ to work from > (https://github.com/sebawild/powersort), in addition to the C > implementations in CPython and PyPy and am willing to invest time into > porting Powersort for numpy. Powersort looks interesting. I see in our docs: ``` kind : {'quicksort', 'mergesort', 'heapsort', 'stable'}, optional Sorting algorithm. The default is 'quicksort'. Note that both 'stable' and 'mergesort' use timsort or radix sort under the covers and, in general, the actual implementation will vary with data type. The 'mergesort' option is retained for backwards compatibility. ``` Given that timsort is used "underneath the hood", it may be an option to improve it, especially given that it does not change fundamental aspects such as stability. You can take a look at src/npysort/timsort.cpp to see what we currently have (a whole bunch of code for handling various object types). Best regards, Stéfan _______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com