Rust Internals
Niche optimization makes use of niches, but padding bytes are neglected
compiler
tczajka
July 23, 2024, 11:47am
2
It can't because padding bytes can be overwritten:
12 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Missed layout optimization
compiler
26
1161
March 20, 2024
Missed niche optimization on unions
language design
30
2450
May 19, 2022
Pre-RFC - Add alignment niches for references
language design
19
3052
March 10, 2022
Pre-pre-pre-... RFC: Explicit padding bytes (`AlwaysUninit<const NBYTES: usize>`)
7
963
October 31, 2021
Optimizing layout of nested enums?
compiler
19
12556
March 25, 2019