about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-08 17:18:20 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-09 14:33:25 +1000
commite785219238e73f353f392afe30073180c5b2c5d6 (patch)
tree74a6a4f472c067a777d74e02ca8c249f66d16ea1 /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
parent1ac76a2062b94b72c36650d21ac1af40b4aea0e3 (diff)
downloadrust-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