]> granicus.if.org Git - python/commit
Argument Clinic: Use METH_FASTCALL for boring positionals
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Jan 2017 01:35:41 +0000 (02:35 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Jan 2017 01:35:41 +0000 (02:35 +0100)
commit093119e4eb8424451ef24a5a5a3ce9881d77abd5
treecfd621572f359d8e9ca23d74b4b262943e42a4e3
parentfe54dd8a08b171c20bafe0759c17464a2642030d
Argument Clinic: Use METH_FASTCALL for boring positionals

Issue #29286. Use METH_FASTCALL calling convention instead of METH_VARARGS to
parse "boring" position arguments. METH_FASTCALL is faster since it avoids the
creation of a temporary tuple to pass positional arguments.

Replace PyArg_UnpackTuple() with _PyArg_UnpackStack()+_PyArg_NoStackKeywords().
Tools/clinic/clinic.py