Skip to content
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

feat: enable LTO #588

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

feat: enable LTO #588

wants to merge 1 commit into from

Conversation

zamazan4ik
Copy link

Hi!

I started a discussion about enabling Link-Time Optimization (LTO) across all pop!_os projects to improve their general performance (more compiler optimizations can be done with LTO) and the binary size reduction (LTO usually leads to measurable binary size improvements) here - pop-os/pop#3386 . In pop-os/pop#3386 (comment) was proposed creating PRs into repos with enabling LTO - it's such a PR!

As a reference, I used the cosmic-comp Release profile.

@@ -81,6 +81,9 @@ wgpu = ["libcosmic/wgpu"]
[profile.dev]
opt-level = 1

[profile.release]
lto = "fat"

Choose a reason for hiding this comment

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

This lto performs better.

Copy link
Author

Choose a reason for hiding this comment

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

Did you mean Thin LTO?

Choose a reason for hiding this comment

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

Yes, I thought that was obvious.

Copy link
Author

Choose a reason for hiding this comment

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

In that case, I disagree with you. For having this discussion on one place, I answered this here: pop-os/pop#3386 (reply in thread)

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.

2 participants