summaryrefslogtreecommitdiff
path: root/doc/release
diff options
context:
space:
mode:
authorHameer Abbasi <hameerabbasi@yahoo.com>2019-05-10 19:14:35 -0700
committerHameer Abbasi <hameerabbasi@yahoo.com>2019-05-11 15:03:48 -0700
commit12fb1015511ac3804d0785bb0d1fe539385548ad (patch)
treea7ba6590987c2e7a048347c1682f1012e10d6cfb /doc/release
parent634d66d5c5461c6c1480e97c1d3fbc4c4ea96a00 (diff)
downloadnumpy-12fb1015511ac3804d0785bb0d1fe539385548ad.tar.gz
ENH: Radix sort
Diffstat (limited to 'doc/release')
-rw-r--r--doc/release/1.17.0-notes.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/release/1.17.0-notes.rst b/doc/release/1.17.0-notes.rst
index 71ad17673..72a45823d 100644
--- a/doc/release/1.17.0-notes.rst
+++ b/doc/release/1.17.0-notes.rst
@@ -110,6 +110,9 @@ random data. The algorithm is stable and requires O(n/2) working space. For
details of the algorithm, refer to
`CPython listsort.txt <https://github.com/python/cpython/blob/3.7/Objects/listsort.txt>`_.
+In addition, for very small dtypes, radix sort is used instead of timsort. In
+general, we attempt to use the fastest possible implementation.
+
``np.unpackbits`` now accepts a ``count`` parameter
---------------------------------------------------
``count`` allows subsetting the number of bits that will be unpacked up-front,
@@ -171,6 +174,14 @@ maintains `O(N log N)` run time complexity instead of deteriorating towards
`O(N*N)` for prime lengths. Also, accuracy for real-valued FFTs with near-prime
lengths has improved and is on par with complex-valued FFTs.
+Performance improvements for integer sorts
+------------------------------------------
+
+``sort``, ``argsort``, ``ndarray.sort`` and ``ndarray.argsort`` now use radix
+sort as the default stable sort for integers and booleans. This is faster than
+the old default, mergesort, in the vast majority of cases.
+
+
Further improvements to ``ctypes`` support in ``np.ctypeslib``
--------------------------------------------------------------
A new `numpy.ctypeslib.as_ctypes_type` function has been added, which can be