• Victor Stinner's avatar
    PyObject_CallMethodObjArgs() now uses fast call · e62b8526
    Victor Stinner authored
    Issue #27809:
    
    * PyObject_CallMethodObjArgs(), _PyObject_CallMethodIdObjArgs() and
      PyObject_CallFunctionObjArgs() now use fast call to avoid the creation of a
      temporary tuple
    * Rename objargs_mktuple() to objargs_mkstack()
    * objargs_mkstack() now stores objects in a C array using borrowed references,
      instead of storing arguments into a tuple
    
    objargs_mkstack() uses a small buffer allocated on the C stack for 5 arguments
    or less, or allocates a buffer in the heap memory.
    e62b8526
abstract.c 75.8 KB