diff options
| author | Sebastian Berg <sebastianb@nvidia.com> | 2023-01-16 19:58:05 +0100 |
|---|---|---|
| committer | Sebastian Berg <sebastianb@nvidia.com> | 2023-01-17 18:40:44 +0100 |
| commit | 419fd3a200b71203c9c8f9e9e61f3f2dffe74daa (patch) | |
| tree | a32b9fc761401af324ad4abb47dae316c95f026b /doc | |
| parent | 1e277fed87a57826150744188c32602f03f4f5a5 (diff) | |
| download | numpy-419fd3a200b71203c9c8f9e9e61f3f2dffe74daa.tar.gz | |
DOC: Add release notes for faster array-function dispatching
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/release/upcoming_changes/23020.change.rst | 9 | ||||
| -rw-r--r-- | doc/release/upcoming_changes/23020.performance.rst | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/23020.change.rst b/doc/release/upcoming_changes/23020.change.rst new file mode 100644 index 000000000..b4198fcba --- /dev/null +++ b/doc/release/upcoming_changes/23020.change.rst @@ -0,0 +1,9 @@ +Most NumPy functions are wrapped into a C-callable +-------------------------------------------------- +To speed up the ``__array_function__`` dispatching, most NumPy functions +are now wrapped into C-callables and are not proper Python functions or +C methods. +They still look and feel the same as before (like a Python function), and this +should only improve performance and user experience (cleaner tracebacks). +However, please inform the NumPy developers if this change confuses your +program for some reason. diff --git a/doc/release/upcoming_changes/23020.performance.rst b/doc/release/upcoming_changes/23020.performance.rst new file mode 100644 index 000000000..db9fcbf3c --- /dev/null +++ b/doc/release/upcoming_changes/23020.performance.rst @@ -0,0 +1,5 @@ +``__array_function__`` machinery is now much faster +--------------------------------------------------- +The overhead of the majority of functions in NumPy is now smaller +especially when keyword arguments are used. This change significantly +speeds up many simple function calls. |
