diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-09-12 08:29:17 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-09-12 08:29:17 +1000 |
| commit | 2fcd870711ce267c79408ec631f7eba8e0afcdf6 (patch) | |
| tree | ec66b517eaeed4b79e9884ed6c390a923ec59348 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 2b8116dced2c6c5d02e1c4359e89dc0919d6001b (diff) | |
| download | rust-2fcd870711ce267c79408ec631f7eba8e0afcdf6.tar.gz rust-2fcd870711ce267c79408ec631f7eba8e0afcdf6.zip | |
Box `DiagnosticBuilder`.
It's a large type -- 176 bytes on 64-bit. And it's passed around and returned from a lot of functions, including within PResult. This commit boxes it, which reduces memory traffic. In particular, `PResult` shrinks to 16 bytes in the best case; this reduces instruction counts by up to 2% on various workloads.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
