[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()
Petr Viktorin
report at bugs.python.org
Tue Apr 7 10:44:27 EDT 2020
Petr Viktorin <encukou at gmail.com> added the comment:
As discussed briefly in Mark's PR, benchmarks like this are now slower:
ret = dict(**{'a': 2, 'b': 4, 'c': 6, 'd': 8})
Python 3.8: Mean +- std dev: 281 ns +- 9 ns
master: Mean +- std dev: 456 ns +- 14 ns
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37207>
_______________________________________
More information about the Python-bugs-list
mailing list