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

perf(index): remove Idx bounds-checks from first + last methods #5726

Commits on Sep 13, 2024

  1. perf(index): remove Idx bounds-checks from first + last methods (

    …#5726)
    
    The following methods of `IndexVec` call `Idx::from_usize` which performs a bounds check, with a panicking branch:
    
    * `first`
    * `first_mut`
    * `last`
    * `last_mut`
    
    These bounds checks are unnecessary. Remove them by delegating to the underlying `Vec`'s methods.
    overlookmotel committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    333e2e0 View commit details
    Browse the repository at this point in the history