Skip to content

Conversation

@corona10
Copy link
Member

@corona10 corona10 commented Oct 1, 2020

@corona10 corona10 changed the title bpo-410902: Micro optimization for range.index if step is 1 bpo-41902: Micro optimization for range.index if step is 1 Oct 1, 2020
@corona10 corona10 requested a review from methane October 21, 2020 01:53
@corona10
Copy link
Member Author

@methane Can you please take a look also?

@corona10 corona10 merged commit c0f22fb into python:master Oct 21, 2020
@corona10 corona10 deleted the bpo-41902 branch October 21, 2020 02:30
return NULL;
}

if (r->step == _PyLong_One) {
Copy link
Member

Choose a reason for hiding this comment

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

Sadly, I made this check a little bit less efficient in commit c9bc290 to fix bpo-42161.

adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
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.

5 participants