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

Save 2 pointers in TerminatorKind (96 → 80 bytes) #126784

Merged
merged 1 commit into from
Jun 24, 2024

Commits on Jun 22, 2024

  1. Save 2 pointers in TerminatorKind (96 → 80 bytes)

    These things don't need to be `Vec`s; boxed slices are enough.
    
    The frequent one here is call arguments, but MIR building knows the number of arguments from the THIR, so the collect is always getting the allocation right in the first place, and thus this shouldn't ever add the shrink-in-place overhead.
    scottmcm committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    b28efb1 View commit details
    Browse the repository at this point in the history