]> granicus.if.org Git - python/commit
PyObject_CallMethodObjArgs() now uses fast call
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 23 Aug 2016 22:01:56 +0000 (00:01 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 23 Aug 2016 22:01:56 +0000 (00:01 +0200)
commite62b85260542df5a7cb0c5b47507875ca7ffff23
treecd6692cc4880940693e88244462ce85161aec43c
parenta9ba1ab21b44abea9775b076573f9c69c9e7153a
PyObject_CallMethodObjArgs() now uses fast call

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.
Objects/abstract.c