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

reduce binary size, use LTO #56

Closed
okias opened this issue May 1, 2020 · 1 comment
Closed

reduce binary size, use LTO #56

okias opened this issue May 1, 2020 · 1 comment
Assignees

Comments

@okias
Copy link

okias commented May 1, 2020

4.9M root  1 May 10:14 /usr/bin/procs # non-LTO
3.8M root  1 May 10:28 /usr/bin/procs # LTO
    echo "
[profile.release]
lto = true
codegen-units = 1
" >> Cargo.toml

also I haven't noticed any prolong compilation due to LTO enabled.

Reference:
[1] https://www.collabora.com/news-and-blog/blog/2020/04/28/reducing-size-rust-gstreamer-plugin/

@dalance dalance self-assigned this May 1, 2020
dalance added a commit that referenced this issue May 1, 2020
@dalance
Copy link
Owner

dalance commented May 1, 2020

Thanks!
I enabled LTO and released v0.10.1.

@okias okias closed this as completed May 1, 2020
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

No branches or pull requests

2 participants