-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-37207: Use PEP 590 vectorcall to speed up frozenset() #19053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The benchmark from the https://bugs.python.org/issue37207#msg364428 was executed by below script. import pyperf
runner = pyperf.Runner()
runner.timeit(name="frozenset create test",
stmt="frozenset([1, 2, 3, 4, 5])") |
6ae0f81
to
27db91d
Compare
Updated, During I work on helper function, I updated my git client and |
And performance improvement is still valid.
|
Thanks @corona10: 1.09x faster (-9%) is nice to have (-200 ns). And IMHO the change makes the code more readable with new comments. |
https://bugs.python.org/issue37207