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 | e785219238e73f353f392afe30073180c5b2c5d6 (patch) | |
| tree | 74a6a4f472c067a777d74e02ca8c249f66d16ea1 /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs | |
| parent | 1ac76a2062b94b72c36650d21ac1af40b4aea0e3 (diff) | |
| download | rust-e785219238e73f353f392afe30073180c5b2c5d6.tar.gz rust-e785219238e73f353f392afe30073180c5b2c5d6.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/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions
