[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

hydroflask report at bugs.python.org
Mon Feb 7 10:32:31 EST 2022


hydroflask <hydroflask at yqxmail.com> added the comment:

> A benchmark on calling C functions using ctypes sounds better than a benchmark calling Python functions.

Calling C functions from Python is not the code path handled by _CallPythonObject() so no difference in run-time would theoretically be observed by that benchmark for this patch. This bug report pertains to code paths where a C function calls back into a Python function. A practical example is using Python with an event loop library written in C.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46323>
_______________________________________


More information about the Python-bugs-list mailing list