Open
Description
From reddit thread: why can't rust optimize the size of Option<Option<&str>>
?
Indeed, in spite of the fact that &str
doesn't all use more than half of possible bit sequences (top bit of 2nd word is always zero, plus first word can not be zero) only Option<&str>
is optimized
Would it make sense to teach compiler about that niche or is it prevented by some deeper issue?