diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-09-12 13:29:32 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-09-12 13:36:01 +1000 |
| commit | 7f0637da5144c7435e88ea3805021882f077d50c (patch) | |
| tree | 92596d57c675c314cf4091cdaa731963c3017737 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 2b8116dced2c6c5d02e1c4359e89dc0919d6001b (diff) | |
| download | rust-7f0637da5144c7435e88ea3805021882f077d50c.tar.gz rust-7f0637da5144c7435e88ea3805021882f077d50c.zip | |
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.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
