]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-90370: Argument Clinic: avoid temporary tuple creation for varargs (#126064)
authorSergey B Kirpichev <skirpichev@gmail.com>
Thu, 31 Oct 2024 10:37:03 +0000 (13:37 +0300)
committerGitHub <noreply@github.com>
Thu, 31 Oct 2024 10:37:03 +0000 (11:37 +0100)
commit8c22eba877225ab29cd64672dcb97f09a5f7336f
treeee74e354c3f99cacf2e3a14d56dbc49e8a08d0a5
parentd07dcce6935364cab807e0df931ed09b088ade69
gh-90370: Argument Clinic: avoid temporary tuple creation for varargs (#126064)

Avoid temporary tuple creation when all arguments either positional-only
or vararg.

Objects/setobject.c and Modules/gcmodule.c adapted. This fixes slight
performance regression for set methods, introduced by gh-115112.
Lib/test/clinic.test.c
Lib/test/test_clinic.py
Misc/NEWS.d/next/Core_and_Builtins/2024-10-27-20-31-43.gh-issue-90370.IP_W3a.rst [new file with mode: 0644]
Modules/_testclinic.c
Modules/clinic/_testclinic.c.h
Modules/clinic/gcmodule.c.h
Modules/gcmodule.c
Objects/clinic/setobject.c.h
Objects/setobject.c
Tools/clinic/libclinic/clanguage.py
Tools/clinic/libclinic/parse_args.py