[New-bugs-announce] [issue45045] Optimize mapping patterns of structural pattern matching

Dong-hee Na report at bugs.python.org
Sun Aug 29 11:56:08 EDT 2021


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

There are optimizable points that can be achieved by removing unnecessary tuple transformation and using vector calling convention.

+---------------+--------+----------------------+
| Benchmark     | base   | opt                  |
+===============+========+======================+
| bench pattern | 482 ns | 417 ns: 1.15x faster |
+---------------+--------+----------------------+

----------
components: Interpreter Core
files: bench_pattern.py
messages: 400549
nosy: corona10
priority: normal
severity: normal
status: open
title: Optimize mapping patterns of structural pattern matching
type: performance
versions: Python 3.11
Added file: https://bugs.python.org/file50240/bench_pattern.py

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


More information about the New-bugs-announce mailing list