Issue #29296: convert print() to METH_FASTCALL · jnmclarty/cpython@bd584f1 · GitHub
Skip to content

Commit bd584f1

Browse files
committed
Issue python#29296: convert print() to METH_FASTCALL
* Replace PyArg_ParseTupleAndKeywords() with _PyArg_ParseStackAndKeywords() which is more efficient to parse keywords, since it decodes only keywords (char*) from UTF-8 once, instead of decoding at each call. * METH_FASTCALL avoids the creation of a temporary tuple to pass positional arguments. Patch written by INADA Naoki, pushed by Victor Stinner.
1 parent 91f0d4a commit bd584f1

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Python/bltinmodule.c

Lines changed: 11 additions & 11 deletions

0 commit comments

Comments
 (0)