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 vectorcall for float()
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, vstinner
Priority: normal Keywords: patch

Created on 2020-09-28 08:55 by Dennis Sweeney, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 22432 merged Dennis Sweeney, 2020-09-28 08:55
Messages (3)
msg377590 - (view) Author: Dennis Sweeney (Dennis Sweeney) * (Python committer) Date: 2020-09-28 08:55
I got these benchmarks:

.\python.bat -m pyperf timeit "float(0)"

Before: Mean +- std dev: 79.0 ns +- 1.0 ns
After:  Mean +- std dev: 51.5 ns +- 1.6 ns
msg377647 - (view) Author: Dong-hee Na (corona10) * (Python committer) Date: 2020-09-29 00:56
New changeset e8acc355d430b45f1c3ff83312e72272262a854f by Dennis Sweeney in branch 'master':
bpo-41873: Add vectorcall for float() (GH-22432)
https://github.com/python/cpython/commit/e8acc355d430b45f1c3ff83312e72272262a854f
msg377648 - (view) Author: Dong-hee Na (corona10) * (Python committer) Date: 2020-09-29 00:58
Now float() is faster!
Thank you for your contribution, Dennis :)
And thank you Victor as co-reviewer!
History
Date User Action Args
2022-04-11 14:59:36adminsetgithub: 86039
2021-04-06 14:49:25corona10setpull_requests: - pull_request23959
2021-04-06 14:41:43corona10setpull_requests: + pull_request23959
2020-09-29 00:58:12corona10setstatus: open -> closed

nosy: + vstinner
messages: + msg377648

resolution: fixed
stage: patch review -> resolved
2020-09-29 00:56:02corona10setnosy: + corona10
messages: + msg377647
2020-09-28 08:55:34Dennis Sweeneysetkeywords: + patch
stage: patch review
pull_requests: + pull_request21463
2020-09-28 08:55:08Dennis Sweeneycreate