min-sized-rust icon indicating copy to clipboard operation
min-sized-rust copied to clipboard

Recommend -Zshare-generics=false with opt-level=z

Open Noratrieb opened this issue 7 months ago • 2 comments

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

Noratrieb avatar Jun 07 '25 14:06 Noratrieb

opt-level=s also does the same, I need to measure more

Noratrieb avatar Jun 07 '25 14:06 Noratrieb

Although with fat LTO enabled this shouldn't make that much of a difference in practice. But I haven't tested that.

Noratrieb avatar Jun 07 '25 20:06 Noratrieb