[New-bugs-announce] [issue43706] enumerate() instantiation time reducing by using PEP 590 vectorcall

Dong-hee Na report at bugs.python.org
Fri Apr 2 13:36:13 EDT 2021


New submission from Dong-hee Na <donghee.na at python.org>:

Finally, I success to implement PEP 590 for enumerate type which is the well-used type in Python.

Amazingly enhanced!

+-----------------+------------------------+----------------------------+
| Benchmark       | enumerate_bench_master | enumerate_bench_vectorcall |
+=================+========================+============================+
| bench enumerate | 527 ns                 | 380 ns: 1.39x faster       |
+-----------------+------------------------+----------------------------+

----------
files: bench_enumerate.py
messages: 390083
nosy: corona10, vstinner, xtreak
priority: normal
severity: normal
status: open
title: enumerate() instantiation time reducing by using PEP 590 vectorcall
Added file: https://bugs.python.org/file49929/bench_enumerate.py

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


More information about the New-bugs-announce mailing list