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 2020-09-29 00:58 by corona10. 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) * 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
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