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: Implement vectorcall protocol for weakref_call()
Type: performance Stage: resolved
Components: Interpreter Core Versions: Python 3.11
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: corona10 Nosy List: corona10, vstinner
Priority: normal Keywords: patch

Created on 2022-01-23 06:50 by corona10, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bench_weakref.py corona10, 2022-01-23 06:50
Pull Requests
URL Status Linked Edit
PR 30820 merged corona10, 2022-01-23 06:54
Messages (2)
msg411350 - (view) Author: Dong-hee Na (corona10) * (Python committer) Date: 2022-01-23 06:50
Triggered by Victor's suggestion:

- Well-used.
- Easy to enhance performance.
- Performance enhancement is notable.
Mean +- std dev: [weakref_base] 49.3 ns +- 2.2 ns -> [weakref_vectorcall] 27.7 ns +- 0.9 ns: 1.78x faster
msg411379 - (view) Author: Dong-hee Na (corona10) * (Python committer) Date: 2022-01-23 15:39
New changeset 76dc047a0e88d10aad0405228d56e94438cdd91c by Dong-hee Na in branch 'main':
bpo-46481: Implement vectorcall for weakref.ref.__call__ method. (GH-30820)
https://github.com/python/cpython/commit/76dc047a0e88d10aad0405228d56e94438cdd91c
History
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90639
2022-01-23 15:40:10corona10setstatus: open -> closed
stage: patch review -> resolved
2022-01-23 15:39:49corona10setmessages: + msg411379
2022-01-23 06:54:35corona10setkeywords: + patch
stage: patch review
pull_requests: + pull_request29007
2022-01-23 06:50:14corona10create