min-sized-rust
min-sized-rust copied to clipboard
Recommend -Zshare-generics=false with opt-level=z
opt-level=z or opt-level=s implicitly enables -Zshare-generics=true, which sometimes has a positive and sometimes has a negative impact.
See https://github.com/rust-lang/rust/issues/142164
opt-level=s also does the same, I need to measure more
Although with fat LTO enabled this shouldn't make that much of a difference in practice. But I haven't tested that.