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

Use the slice length to hint the optimizer about iter.position result #47772

Merged
merged 1 commit into from
Jan 28, 2018

Commits on Jan 26, 2018

  1. Use the slice length to hint the optimizer

    Using the len of the iterator doesn't give the same result.
    That's also why we can't generalize it to all TrustedLen iterators.
    arthurprs committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    4f7109a View commit details
    Browse the repository at this point in the history