diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-08 17:18:20 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-09 14:33:25 +1000 |
| commit | b8b3a9328f8449bd18a1af09ca93d6cf114720df (patch) | |
| tree | ec0ff7dde113df4d97f2824ae491569ee2b3e6d8 /tests/codegen/patchable-function-entry | |
| parent | 37da2641076203c22d615f132572172359576fe2 (diff) | |
| download | rust-b8b3a9328f8449bd18a1af09ca93d6cf114720df.tar.gz rust-b8b3a9328f8449bd18a1af09ca93d6cf114720df.zip | |
Shrink `TyKind::FnPtr`.
By splitting the `FnSig` within `TyKind::FnPtr` into `FnSigTys` and `FnHeader`, which can be packed more efficiently. This reduces the size of the hot `TyKind` type from 32 bytes to 24 bytes on 64-bit platforms. This reduces peak memory usage by a few percent on some benchmarks. It also reduces cache misses and page faults similarly, though this doesn't translate to clear cycles or wall-time improvements on CI.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions
