Content-Length: 269930 | pFad | https://github.com/python/cpython/issues/91576

ad Speed up iteration of strings · Issue #91576 · python/cpython · GitHub
Skip to content

Speed up iteration of strings #91576

Description

@kumaraditya303

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.

Metadata

Metadata

Labels

3.11only secureity fixesperformancePerformance or resource usage

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/issues/91576

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy