diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-08-22 21:35:01 -0700 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-08-31 20:32:17 -0700 |
| commit | 2d1240e6f7709d06caddc396f689ba0bc77f80a3 (patch) | |
| tree | 12c26b83912898d125c49c656cdc6a91a770fde8 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 5d6804469d80aaf26f98090ae016af45e267f58f (diff) | |
| download | rust-2d1240e6f7709d06caddc396f689ba0bc77f80a3.tar.gz rust-2d1240e6f7709d06caddc396f689ba0bc77f80a3.zip | |
Box `GenericArgs::Parenthesized.output`
This reduces the size of `GenericArgs` from 104 bytes to 56 bytes, essentially reducing it by half. `GenericArgs` is one of the fields of `PathSegment`, so this should reduce the amount of memory allocated for `PathSegment`s in the cases where the generics are not for a `Fn`, `FnMut`, or `FnOnce` trait. I also added `static_assert_size!`s to `GenericArgs` and `PathSegment` to ensure they don't increase in size unexpectedly.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
