3 ms·
Look at the "Size optimizations implemented so far" section. It's mostly about packing enum discriminators into unused bits and bytes. Beyond that rust has alw
by the8472 8y ago
Look at the "Size optimizations implemented so far" section. It's mostly about packing enum discriminators into unused bits and bytes.
Beyond that rust has always done field reordering to minimize wastage from alignment gaps.
Other optimizations are still being planned.