Issue 43575: map() instantiation time reducing by using PEP 590 vectorcall - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: corona10 Nosy List: corona10, rhettinger, vstinner
Priority: normal Keywords: patch

Created on 2021-03-21 03:25 by corona10, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
map_bench.py corona10, 2021-03-21 03:25
Pull Requests
URL Status Linked Edit
PR 24955 merged corona10, 2021-03-21 03:28
Messages (2)
msg389210 - (view) Author: Dong-hee Na (corona10) * (Python committer) Date: 2021-03-21 03:25
+-----------+------------------+----------------------+
| Benchmark | map_bench_master | map_bench_vectorcall |
+===========+==================+======================+
| bench map | 151 ns           | 116 ns: 1.30x faster |
+-----------+------------------+----------------------+

We already apply this feature for filter().
No reason not to apply map().
msg389293 - (view) Author: Dong-hee Na (corona10) * (Python committer) Date: 2021-03-22 10:01
New changeset 86883d40e93acae980e52b90fddd7d042e439beb by Dong-hee Na in branch 'master':
bpo-43575: Use PEP 590 vectorcall to speed up map() (GH-24955)
https://github.com/python/cpython/commit/86883d40e93acae980e52b90fddd7d042e439beb