https://github.com/python/cpython
Revision 51ed2c56a1852cd6b09c85ba81312dc9782772ce authored by Tim Peters on 25 October 2021, 03:27:24 UTC, committed by GitHub on 25 October 2021, 03:27:24 UTC
Keep track of whether unsafe_tuple_compare() calls are resolved by the very
first tuple elements, and adjust strategy accordingly. This can significantly
cut the number of calls made to the full-blown PyObject_RichCompareBool(),
and especially when duplicates are rare.

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
1 parent 07236d5
History
Tip revision: 51ed2c56a1852cd6b09c85ba81312dc9782772ce authored by Tim Peters on 25 October 2021, 03:27:24 UTC
bpo-45530: speed listobject.c's unsafe_tuple_compare() (GH-29076)
Tip revision: 51ed2c5
File Mode Size
.azure-pipelines
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
.editorconfig -rw-r--r-- 181 bytes
.gitattributes -rw-r--r-- 2.1 KB
.gitignore -rw-r--r-- 2.1 KB
.travis.yml -rw-r--r-- 6.5 KB
CODE_OF_CONDUCT.md -rw-r--r-- 630 bytes
LICENSE -rw-r--r-- 13.6 KB
Makefile.pre.in -rw-r--r-- 76.0 KB
README.rst -rw-r--r-- 9.9 KB
aclocal.m4 -rw-r--r-- 22.3 KB
config.guess -rwxr-xr-x 48.3 KB
config.sub -rwxr-xr-x 33.6 KB
configure -rwxr-xr-x 515.6 KB
configure.ac -rw-r--r-- 176.2 KB
install-sh -rwxr-xr-x 15.0 KB
netlify.toml -rw-r--r-- 82 bytes
pyconfig.h.in -rw-r--r-- 45.1 KB
setup.py -rw-r--r-- 112.2 KB

README.rst

back to top