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
1080
March 20, 2024
Pre-(Pre-)RFC: niche types
language design
10
453
November 4, 2024
Pre-RFC - Add alignment niches for references
language design
19
2941
March 10, 2022
Store Option discriminant in Containing type (optimization)
compiler
4
393
September 3, 2024
`NonMaxUsize` and niche value optimisation
libs
20
2077
January 9, 2024