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
Faster *_find_max_char #59350
Comments
Here is patch that speed up *_find_max_char stringlib functions. Microbenchmarks: ./python -m timeit -s "s='A'*20+'\x80'" "s[:-1]" Results on Intel Atom N570 @ 1.66GHz: vanilla patched 0.819 0.73 |
Are there any circumstances where this produces a larger speedup? |
I don't know. *_find_max_char in any case only a part of expensive
I agree. It is rather a question of purity. In my opinion the function |
Patch updated to tip. But because results are contradictory and often patched version even slower vanilla (and I don't understand why it happens), I close the issue. I think all changes are irrelevant and differences are only compiler optimization artifacts. |
Thanks for the effort, Serhiy! |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: