]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42161: Micro-optimize _collections._count_elements() (GH-23008)
authorVictor Stinner <vstinner@python.org>
Tue, 27 Oct 2020 21:24:33 +0000 (22:24 +0100)
committerGitHub <noreply@github.com>
Tue, 27 Oct 2020 21:24:33 +0000 (22:24 +0100)
commit35b95aaf21534e4a8e3370dfd6f7482265316c9e
tree1f0bb3bbeb1c8389b1cd43408f17e0d17c748b7d
parentc310185c081110741fae914c06c7aaf673ad3d0d
bpo-42161: Micro-optimize _collections._count_elements() (GH-23008)

Move the _PyLong_GetOne() call outside the fast-path loop.
Modules/_collectionsmodule.c