summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-04-28 13:46:45 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2022-04-28 13:46:45 +0200
commit2021e7c637b0855e8c5277965e4f69ee201485ba (patch)
tree83370d0e6f733e029bda47fec015580638c7b0cb
parent3b60effc5d1cb1e13e8aa8d9dabf228c68683fdb (diff)
downloadnumpy-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.rst8
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()`.