[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c
STINNER Victor
report at bugs.python.org
Mon Feb 7 08:45:45 EST 2022
STINNER Victor <vstinner at python.org> added the comment:
A benchmark on calling C functions using ctypes sounds better than a benchmark calling Python functions. For Python functions, Python objects are converted to C types, and then C types are convered back to Python objects, the Python result is converted to a C type, and then the C type is converted back to a Python object for the final result...
It would be nice to have a benchmark on different number of arguments. Like: 0, 1, 3, 5, 8, 10.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46323>
_______________________________________
More information about the Python-bugs-list
mailing list