STINNER Victor <vstin...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue35582> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com