[issue28839] _PyFunction_FastCallDict(): replace PyTuple_New() with PyMem_Malloc()
STINNER Victor
report at bugs.python.org
Mon Jan 2 19:48:39 EST 2017
STINNER Victor added the comment:
Quick update on the fastcall work.
> I pushed th echange b9c9691c72c5 to replace PyObject_CallFunctionObjArgs() with _PyObject_CallNoArg() or _PyObject_CallArg1(). These functions are simpler and don't allocate memory on the C stack.
Using _PyObject_CallArg1() increased the usage of the C stack: see issue #28858. The fix was to remove the _PyObject_CallArg1() macro, replaced with PyObject_CallFunctionObjArgs(func, arg, NULL).
There is still an open issue #28870 to reduce the usage of the C stack memory even more, but it's more a general optimization.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28839>
_______________________________________
More information about the Python-bugs-list
mailing list