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

[stdlib] Optimize _StringSliceIter to not have branching in forward iteration #3546

Open
wants to merge 19 commits into
base: nightly
Choose a base branch
from

Conversation

martinvuyk
Copy link
Contributor

@martinvuyk martinvuyk commented Sep 24, 2024

Optimize _StringSliceIter to not have branching in forward iteration.

This also fixes an error in the iterator's __len__ logic which assumed it would be called only at the beginning of the iteration

Signed-off-by: martinvuyk <[email protected]>
Signed-off-by: martinvuyk <[email protected]>
Signed-off-by: martinvuyk <[email protected]>
Signed-off-by: martinvuyk <[email protected]>
Signed-off-by: martinvuyk <[email protected]>
Signed-off-by: martinvuyk <[email protected]>
@martinvuyk martinvuyk marked this pull request as ready for review October 20, 2024 22:38
@martinvuyk martinvuyk requested a review from a team as a code owner October 20, 2024 22:38
Copy link
Collaborator

@JoeLoser JoeLoser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the part about

This also fixes an error in the iterator's len logic which assumed it would be called only at the beginning of the iteration

Can we add a unit test case that gets fixed as a result of your changes?

Signed-off-by: martinvuyk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants