[issue28839] _PyFunction_FastCallDict(): replace PyTuple_New() with PyMem_Malloc()

Josh Rosenberg report at bugs.python.org
Wed Nov 30 14:49:16 EST 2016


Josh Rosenberg added the comment:

Minor correction: No allocation when small stack used, so you'd only see (possibly) regressions with 6+ keyword arguments (assuming the tuple free list applies for tuples that large). Admittedly a minor concern; keyword processing is already pretty slow, and large numbers of keywords being passed are likely a tiny fraction of call cases, so I'd guess microbenchmarks wouldn't show a big change, and broad benchmarks would be completely unaffected, but worth checking.

----------

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


More information about the Python-bugs-list mailing list