-
- Downloads
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:
Łukasz Langa <lukasz@langa.pl>
Showing
- Doc/reference/expressions.rst 2 additions, 0 deletionsDoc/reference/expressions.rst
- Doc/whatsnew/3.11.rst 7 additions, 0 deletionsDoc/whatsnew/3.11.rst
- Misc/NEWS.d/next/Core and Builtins/2021-10-20-01-28-26.bpo-45530.5r7n4m.rst 8 additions, 0 deletions...ore and Builtins/2021-10-20-01-28-26.bpo-45530.5r7n4m.rst
- Objects/listobject.c 64 additions, 13 deletionsObjects/listobject.c
Loading
Please register or sign in to comment