summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorCrowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>2022-01-28 00:46:45 (GMT)
committerGitHub <noreply@github.com>2022-01-28 00:46:45 (GMT)
commitf10dafc430279b4e6cf5b981ae3d1d76e8f431ad (patch)
tree2d6ab9a6c43f14ad95aad209d2cd78f005cd3807 /Misc/NEWS.d
parente7a6285f1be18992191599792524d3aa6aedfa55 (diff)
downloadcpython-f10dafc430279b4e6cf5b981ae3d1d76e8f431ad.zip
cpython-f10dafc430279b4e6cf5b981ae3d1d76e8f431ad.tar.gz
cpython-f10dafc430279b4e6cf5b981ae3d1d76e8f431ad.tar.bz2
bpo-46407: Optimizing some modulo operations (GH-30653)
Added new internal functions to compute mod without also computing the quotient. The loops can be leaner then, which leads to modestly but reliably faster execution in contexts that know they don't need the quotient. Code by Jeremiah Vivian (Pascual).
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2022-01-17-23-12-01.bpo-46407.2_5a7R.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-01-17-23-12-01.bpo-46407.2_5a7R.rst b/Misc/NEWS.d/next/Core and Builtins/2022-01-17-23-12-01.bpo-46407.2_5a7R.rst
new file mode 100644
index 0000000..e7f555f
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2022-01-17-23-12-01.bpo-46407.2_5a7R.rst
@@ -0,0 +1 @@
+Optimize some modulo operations in ``Objects/longobject.c``. Patch by Jeremiah Vivian.