[issue27841] Use fast call in method_call() and slot_tp_new()

STINNER Victor report at bugs.python.org
Tue Aug 23 10:55:31 EDT 2016


STINNER Victor added the comment:

> It uses a small buffer allocated on the stack C if the function is called with 4 arguments or less, or it allocates a buffer in the heap memory.

Maybe 4 is too small. On 64 bit, it's just 5*8=40 bytes. Maybe we can use a buffer of 10 pointers: 80 bytes? It would optimize calls with up to 9 arguments (1 pointer is used for "obj" argument, the "prepended" argument).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27841>
_______________________________________


More information about the Python-bugs-list mailing list