diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-27 10:03:33 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-28 09:36:18 +1100 |
| commit | 9a0513ad7134f75d51b16ac359e41f52f9dda463 (patch) | |
| tree | 72e9fee3febe987e427aec4ea0a880796d24143e /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | afc5e1fba5e12da77c6bcb8183c277c6e61de6a3 (diff) | |
| download | rust-9a0513ad7134f75d51b16ac359e41f52f9dda463.tar.gz rust-9a0513ad7134f75d51b16ac359e41f52f9dda463.zip | |
Optimize `Trace`.
`Trace::FromOutlivesConstraint` contains an `OutlivesConstraint`, which is 72 bytes. Lots of these are created but never used. This commit splits `Trace::FromOutlivesConstraint` into three new variants: `FromVanilla`, `FromStatic`, `FromMember`. Each of these contains just enough data to construct an `OutlivesConstraint`, if necessary. This reduces the size of `Trace` from 72 bytes to 16 bytes. All this avoids some memory traffic.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
