METH_METHOD
calling convention is now not so efficient
#123500
Labels
METH_METHOD
calling convention is now not so efficient
#123500
Bug report
Bug description:
There are callables implemented with the
METH_METHOD|METH_FASTCALL
signature in C. They can be 5%-15% less efficient than using onlyMETH_FASTCALL
(orMETH_O
) with aPyType_GetModuleByDef
function call.For example, I measured the difference on Windows PGO builds by duplicating functions:
CDataType_from_buffer_copy()
in_ctypes.c
, which is not called when profiling:dec_mpd_qquantize()
in_decimal.c
profiled with 6800 calls (unfair?):Script (expand)
Observations:
_sre
), where the impacts may be less significant.CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: