]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46407: Optimizing some modulo operations (GH-30653)
authorCrowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>
Fri, 28 Jan 2022 00:46:45 +0000 (08:46 +0800)
committerGitHub <noreply@github.com>
Fri, 28 Jan 2022 00:46:45 +0000 (18:46 -0600)
commitf10dafc430279b4e6cf5b981ae3d1d76e8f431ad
tree2d6ab9a6c43f14ad95aad209d2cd78f005cd3807
parente7a6285f1be18992191599792524d3aa6aedfa55
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).
Misc/ACKS
Misc/NEWS.d/next/Core and Builtins/2022-01-17-23-12-01.bpo-46407.2_5a7R.rst [new file with mode: 0644]
Objects/longobject.c