X Tutup
The Wayback Machine - https://web.archive.org/web/20221223152849/https://github.com/python/cpython/issues/91576
Skip to content
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

Speed up iteration of strings #91576

Closed
kumaraditya303 opened this issue Apr 15, 2022 · 0 comments · Fixed by #91574
Closed

Speed up iteration of strings #91576

kumaraditya303 opened this issue Apr 15, 2022 · 0 comments · Fixed by #91574
Assignees
Labels
3.11 performance Performance or resource usage

Comments

@kumaraditya303
Copy link
Contributor

kumaraditya303 commented Apr 15, 2022

PR speeds up iteration with:

  • reducing branches in the iternext function.
  • Add a special ascii iterator for strings which covers the common case.

Benchmark results are attached in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 performance Performance or resource usage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
X Tutup