about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-slice-array.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-14 00:56:53 +0000
committerbors <bors@rust-lang.org>2024-08-14 00:56:53 +0000
commit6d08b08927c448604843aeba77fb203db51aecef (patch)
tree1be5c25c0eb5277297558895eee93ddbec9cf3b1 /tests/rustdoc-js-std/parser-slice-array.js
parente36c2a40e3d9d1d1fefb620a72190a570e638279 (diff)
parente785219238e73f353f392afe30073180c5b2c5d6 (diff)
downloadrust-6d08b08927c448604843aeba77fb203db51aecef.tar.gz
rust-6d08b08927c448604843aeba77fb203db51aecef.zip
Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors
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.

r? `@compiler-errors`
Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions