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

add LTO, add O3 builds for Linux at Release #63

Closed
wants to merge 1 commit into from
Closed

add LTO, add O3 builds for Linux at Release #63

wants to merge 1 commit into from

Conversation

myrrc
Copy link

@myrrc myrrc commented Apr 13, 2024

Hi!

LTO decreases binary size from 1.5MB to 400kB, along with O3 it drops down to
300kB.

@mikeoliphant
Copy link
Owner

I'm not super concerned about file size, but I'm good with improvements there if it doesn't impact performance.

Not sure about O3 instead of the existing Ofast (which should be doing the same optimization as O3, but with the addition of fast-math).

@myrrc
Copy link
Author

myrrc commented Apr 14, 2024 via email

@mikeoliphant
Copy link
Owner

Why the change from cxx_std_17 to cxx_std_20?

@myrrc
Copy link
Author

myrrc commented Apr 17, 2024 via email

@mikeoliphant
Copy link
Owner

Project's main target standard is set to C++20. I can revert this.

Fair point. Why don't you remove it from this PR, though, unless it is required for LTO. I added an issue to fix the c++ version mismatch: #64

@mikeoliphant
Copy link
Owner

I'm not seeing a size decrease in the github builds. The shared library is 297K without LTO in the current github build:

https://github.com/mikeoliphant/neural-amp-modeler-lv2/actions/runs/8617915345/artifacts/1398223029

It looks to be the same size with your PR:

https://github.com/mikeoliphant/neural-amp-modeler-lv2/actions/runs/8681010571/artifacts/1424209301

@myrrc
Copy link
Author

myrrc commented Apr 18, 2024 via email

@myrrc myrrc closed this Apr 18, 2024
@mikeoliphant
Copy link
Owner

Hey, at least now I know that I'm doing LTO... 😄

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