-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Improve performance of find_max_char
#122901
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
Comments
@vstinner Should you or someone else look at this? Should OP say more about idea of patch? Is the above the proper speed test? |
I would also look at the arguments in #120212. Personally, I would include in the benchmarks:
By the way, is your build a release or a PGO (maybe with LTO) build? |
This is basically the same as #120212 but with larger chunks. Given that this approach unifies the find_max_char functions for all I would add benchmarks for line by line reading. |
Would it be possible to have a few more benchmarks on this change to have an idea if it's worth it or not? |
Feature or enhancement
Proposal:
find_max_char
is called each time a string is created.By reducing the amount of tests, the performance can be improved considerably.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: