Replace PyObject_CallFunction calls with only object args

with PyObject_CallFunctionObjArgs, which is 30% faster.
This commit is contained in:
Georg Brandl 2006-05-25 19:15:31 +00:00
parent 3b0cae9cc0
commit 684fd0c8ec
8 changed files with 17 additions and 20 deletions

View file

@ -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);