Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Noratrieb
Copy link

@Noratrieb Noratrieb commented Jun 7, 2025

opt-level=z or opt-level=s implicitly enables -Zshare-generics=true, which sometimes has a positive and sometimes has a negative impact.

See rust-lang/rust#142164

```
Copy link
Author

@Noratrieb Noratrieb Jun 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there was no trailing newline and my editor added it automatically, which seems fine to me

@Noratrieb Noratrieb marked this pull request as draft June 7, 2025 14:19
@Noratrieb

This comment was marked as resolved.

opt-level=z|s implicitly enables -Zshare-generics=true, which sometimes has a positive and sometimes has a negative impact.

Update README.md
@Noratrieb Noratrieb marked this pull request as ready for review June 7, 2025 14:58
@Noratrieb
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant