diff options
author | mattip <matti.picus@gmail.com> | 2023-02-05 13:54:49 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2023-02-05 19:54:07 +0200 |
commit | 3802b1664706fc71dac6d8932084e8b246e1770d (patch) | |
tree | 69eb366c0530b3f7eaa3592039906cbc5d3eb1c5 /doc | |
parent | 6541cf5c607a3b9500d04551dc28bfbecd1fc7a6 (diff) | |
download | numpy-3802b1664706fc71dac6d8932084e8b246e1770d.tar.gz |
MAINT: rework release note, changes from review
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/upcoming_changes/23136.performance.rst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/release/upcoming_changes/23136.performance.rst b/doc/release/upcoming_changes/23136.performance.rst index 560f35885..97d0e4a5d 100644 --- a/doc/release/upcoming_changes/23136.performance.rst +++ b/doc/release/upcoming_changes/23136.performance.rst @@ -1,17 +1,17 @@ ``ufunc.at`` can be much faster ------------------------------- -If called on ufuncs with appropriate indexed loops, ``ufunc.at`` can be up to -60x faster. Generic ``ufunc.at`` can be up to 9x faster. The conditions for -any speedup:: +Generic ``ufunc.at`` can be up to 9x faster. The conditions for this speedup: - contiguous arguments - no casting -The conditions for the extra speedup:: - -- calling the ufuncs ``add``, ``subtract``, ``multiply``, ``divide`` (and - ``floor_divide``) -- 1d arguments +If ufuncs with appropriate indexed loops on 1d arguments with the above +conditions, ``ufunc.at`` can be up to 60x faster (an additional 7x speedup). +Appropriate indexed loops have been added to ``add``, ``subtract``, +``multiply``, ``divide`` (and ``floor_divide``) The internal logic is similar to the logic used for regular ufuncs, which also have a fast path for contiguous, non-casting, 1d arrays. + +Thanks to the `D. E. Shaw group <https://deshaw.com/>`_ for sponsoring this +work. |