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

Optimize iterator adapters. #25035

Merged
merged 1 commit into from
May 6, 2015
Merged

Optimize iterator adapters. #25035

merged 1 commit into from
May 6, 2015

Commits on May 5, 2015

  1. Optimize iterator adapters.

    Specifically, make count, nth, and last call the corresponding methods
    on the underlying iterator where possible. This way, if the underlying
    iterator has an optimized count, nth, or last implementations (e.g.
    slice::Iter), these methods will propagate these optimizations.
    
    Additionally, change Skip::next to take advantage of a potentially
    optimized nth method on the underlying iterator.
    Stebalien committed May 5, 2015
    Configuration menu
    Copy the full SHA
    3fcbc31 View commit details
    Browse the repository at this point in the history