]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39028: Performance enhancement in keyword extraction (GH-17576)
authorSebastian Berg <sebastian@sipsolutions.net>
Wed, 18 Dec 2019 06:51:22 +0000 (00:51 -0600)
committerInada Naoki <songofacandy@gmail.com>
Wed, 18 Dec 2019 06:51:22 +0000 (15:51 +0900)
commit75bb07e92baa7267a61056d03d7e6b475588e793
treecb121c8bd4a5cf925359bdf4d1d591ec34528ae2
parent50d4f12958bf806a4e1a1021d70cfd5d448c5cba
bpo-39028: Performance enhancement in keyword extraction (GH-17576)

All keywords should first be checked for pointer identity. Only
after that failed for all keywords (unlikely) should unicode
equality be used.
The original code would call unicode equality on any non-matching
keyword argument. Meaning calling it often e.g. when a function
has many kwargs but only the last one is provided.
Misc/NEWS.d/next/Core and Builtins/2019-12-17-23-20-51.bpo-39028.SND4TB.rst [new file with mode: 0644]
Python/getargs.c