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
Title: map() instantiation time reducing by using PEP 590 vectorcall
Type: performance Stage: resolved
Components: Interpreter Core Versions: Python 3.10
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
History
Date User Action Args
2022-04-11 14:59:43adminsetgithub: 87741
2021-03-22 10:01:34corona10setstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-03-22 10:01:27corona10setmessages: + msg389293
2021-03-21 16:27:37xtreaksetnosy: + rhettinger
2021-03-21 03:28:08corona10setkeywords: + patch
stage: patch review
pull_requests: + pull_request23714
2021-03-21 03:25:03corona10create