mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Replace PyObject_CallFunction calls with only object args
with PyObject_CallFunctionObjArgs, which is 30% faster.
This commit is contained in:
parent
3b0cae9cc0
commit
684fd0c8ec
8 changed files with 17 additions and 20 deletions
|
@ -3267,8 +3267,8 @@ initparser(void)
|
|||
&& (pickler != NULL)) {
|
||||
PyObject *res;
|
||||
|
||||
res = PyObject_CallFunction(func, "OOO", &PyST_Type, pickler,
|
||||
pickle_constructor);
|
||||
res = PyObject_CallFunctionObjArgs(func, &PyST_Type, pickler,
|
||||
pickle_constructor, NULL);
|
||||
Py_XDECREF(res);
|
||||
}
|
||||
Py_XDECREF(func);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue