BPO | [41873](https://bugs.python.org/issue41873) --- | :--- Nosy | @vstinner, @corona10, @sweeneyde PRs | python/cpython#22432 *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = None closed_at = created_at = labels = ['interpreter-core', '3.10', 'performance'] title = 'Add vectorcall for float()' updated_at = user = 'https://github.com/sweeneyde' ``` bugs.python.org fields: ```python activity = actor = 'corona10' assignee = 'none' closed = True closed_date = closer = 'corona10' components = ['Interpreter Core'] creation = creator = 'Dennis Sweeney' dependencies = [] files = [] hgrepos = [] issue_num = 41873 keywords = ['patch'] message_count = 3.0 messages = ['377590', '377647', '377648'] nosy_count = 3.0 nosy_names = ['vstinner', 'corona10', 'Dennis Sweeney'] pr_nums = ['22432'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'performance' url = 'https://bugs.python.org/issue41873' versions = ['Python 3.10'] ```
Activity
sweeneyde commentedon Sep 28, 2020
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
corona10 commentedon Sep 29, 2020
New changeset e8acc35 by Dennis Sweeney in branch 'master':
bpo-41873: Add vectorcall for float() (GH-22432)
e8acc35
corona10 commentedon Sep 29, 2020
Now float() is faster!
Thank you for your contribution, Dennis :)
And thank you Victor as co-reviewer!
gh-87613: Use AC vectorcall for float (GH-158201)