Commit 27601915 authored by Raymond Hettinger's avatar Raymond Hettinger

Speed-up the joiner call by avoiding Py_BuildValue().

parent eaba1cab
......@@ -436,7 +436,11 @@ O_writelines(Oobject *self, PyObject *args) {
if (PyObject_Size(args) < 0) return NULL;
tmp = PyObject_CallFunction(joiner, "O", args);
args = PyTuple_Pack(1, args);
if (args == NULL)
return NULL;
tmp = PyObject_Call(joiner, args, NULL);
Py_DECREF(args);
UNLESS (tmp) return NULL;
args = PyTuple_Pack(1, tmp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment