Skip to content
Snippets Groups Projects
Unverified Commit 51ed2c56 authored by Tim Peters's avatar Tim Peters Committed by GitHub
Browse files

bpo-45530: speed listobject.c's unsafe_tuple_compare() (GH-29076)


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: default avatarŁukasz Langa <lukasz@langa.pl>
parent 07236d56
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment