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

Shrink SubregionOrigin. #64394

Merged
merged 1 commit into from Sep 18, 2019
Merged

Commits on Sep 12, 2019

  1. Shrink SubregionOrigin.

    It's currently 120 bytes on x86-64, due to one oversized variant
    (`Subtype`). This commit boxes `Subtype`'s contents, reducing the size
    of `SubregionOrigin` to 32 bytes.
    
    The change speeds things up by avoiding lots of `memcpy` calls, mostly
    relating to `RegionConstraintData::constraints`, which is a `BTreeMap`
    with `SubregionOrigin` values.
    nnethercote committed Sep 12, 2019
    Copy the full SHA
    7f0637d View commit details
    Browse the repository at this point in the history