diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-04-28 13:46:45 +0200 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2022-04-28 13:46:45 +0200 |
commit | 2021e7c637b0855e8c5277965e4f69ee201485ba (patch) | |
tree | 83370d0e6f733e029bda47fec015580638c7b0cb | |
parent | 3b60effc5d1cb1e13e8aa8d9dabf228c68683fdb (diff) | |
download | numpy-2021e7c637b0855e8c5277965e4f69ee201485ba.tar.gz |
DOC: Add a release note about the performance improvements in scalars
I somewhat think the change for subclass logic is so esoteric, that I am
not even sure a release note is useful...
-rw-r--r-- | doc/release/upcoming_changes/21188.performance.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/21188.performance.rst b/doc/release/upcoming_changes/21188.performance.rst new file mode 100644 index 000000000..ce497572a --- /dev/null +++ b/doc/release/upcoming_changes/21188.performance.rst @@ -0,0 +1,8 @@ +Faster operations on NumPy scalars +---------------------------------- +Many operations on NumPy scalars are now significantly faster, although +rare operations (e.g. with 0-D arrays rather than scalars) may be slower +in some cases. +However, even with these improvements users who want the best performance +for their scalars, may want to convert a known NumPy scalar into a Python +one using `scalar.item()`. |