[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

STINNER Victor report at bugs.python.org
Wed Apr 1 21:31:24 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

> When I designed the FASTCALL calling convention, I experimented a new tp_fastcall slot to PyTypeObject to optimize __call__() method: bpo-29259.

Ah, by the way, I also made an attempt to use the FASTCALL calling convention for tp_new and tp_init: bpo-29358. Again, the speedup wasn't obvious and the implementation was quite complicated with many corner cases. So I gave up on this one. It didn't seem to be really worth it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37207>
_______________________________________


More information about the Python-bugs-list mailing list