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: Add PyType_Type.tp_vectorcall for type(obj) performance
Type: performance Stage: resolved
Components: Interpreter Core Versions: Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Dennis Sweeney, corona10, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2021-01-02 10:00 by Dennis Sweeney, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24058 merged Dennis Sweeney, 2021-01-02 10:04
Messages (3)
msg384218 - (view) Author: Dennis Sweeney (Dennis Sweeney) * (Python committer) Date: 2021-01-02 10:00
# common case
.\python.bat -m pyperf timeit "type(17)"
Master: 49.9 ns +- 1.8 ns ---> PR: 33.3 ns +- 1.4 ns

# uncommon case
.\python.bat -m pyperf timeit "type('A', (object, ), {})"
Master: 5.14 us +- 0.04 us ---> PR: 5.43 us +- 0.06 us
msg387488 - (view) Author: Dong-hee Na (corona10) * (Python committer) Date: 2021-02-22 02:59
New changeset b19855bb6ffd69a16e8b53873b19b0b04f488716 by Dennis Sweeney in branch 'master':
bpo-42808: Add PyType_Type.tp_vectorcall for type(obj) performance (GH-24058)
https://github.com/python/cpython/commit/b19855bb6ffd69a16e8b53873b19b0b04f488716
msg387489 - (view) Author: Dong-hee Na (corona10) * (Python committer) Date: 2021-02-22 02:59
Thank you Dennis!
History
Date User Action Args
2022-04-11 14:59:39adminsetgithub: 86974
2021-02-22 02:59:49corona10setstatus: open -> closed
nosy: serhiy.storchaka, corona10, Dennis Sweeney
messages: + msg387489

resolution: fixed
stage: patch review -> resolved
2021-02-22 02:59:32corona10setnosy: + corona10
messages: + msg387488
2021-01-02 10:37:37corona10setnosy: + serhiy.storchaka
2021-01-02 10:04:18Dennis Sweeneysetkeywords: + patch
stage: patch review
pull_requests: + pull_request22892
2021-01-02 10:00:06Dennis Sweeneycreate