[issue35582] Argument Clinic: inline parsing code for functions with only positional parameters
STINNER Victor
report at bugs.python.org
Fri Jan 11 12:19:15 EST 2019
STINNER Victor <vstinner at redhat.com> added the comment:
$ ./python -m timeit "iter(())"
Unpatched: 5000000 loops, best of 5: 82.8 nsec per loop
Patched: 5000000 loops, best of 5: 56.3 nsec per loop
That's quite significant. Oh, it's because you converted builtin_iter() from METH_VARARGS to METH_FASTCALL at the same time. Interesting.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35582>
_______________________________________
More information about the Python-bugs-list
mailing list