[Python-ideas] Preallocated tuples and dicts for function calls
J.Demeyer at UGent.be
Tue Mar 12 11:20:34 EDT 2019
On 2019-03-08 22:16, Martin Bammer wrote:
> what about the idea that the interpreter preallocates and preinitializes
> tuples and dicts for function calls where possible when loading a module?
The basic premise here is wrong: function calls using the METH_FASTCALL
convention don't need to allocate any temporary tuple/dict for function
calls. Of course, not all function calls use METH_FASTCALL, but most of
them where performance matters do.
More information about the Python-ideas