diff options
author | Crowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com> | 2022-01-28 00:46:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 00:46:45 (GMT) |
commit | f10dafc430279b4e6cf5b981ae3d1d76e8f431ad (patch) | |
tree | 2d6ab9a6c43f14ad95aad209d2cd78f005cd3807 /Misc/NEWS.d | |
parent | e7a6285f1be18992191599792524d3aa6aedfa55 (diff) | |
download | cpython-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.rst | 1 |
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. |