You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't enable LTO which can be achieved easily by adding:
[profile.release]
opt-level = 3<--- Can be changed to 's' for further binary size reductiondebug = falselto = "fat"<--- Enables LTOstrip = "debuginfo"panic = 'unwind'incremental = falsecodegen-units = 1<--- It impacts size of binaryrpath = false
As you can see in this screenshot, the first build binary has release size of 56mb and after applying opt-level='s', the binary size gets down to 32mb and the last build results in 36mb which performs LTO only
The text was updated successfully, but these errors were encountered:
Hey @rawhuul thanks for the suggestion! I'd like to see us create a special profile specifically called packaging that can use these optimizations.
I use release profile a lot while developing and LTO will really kill compile times there, so I think we should only enable when "packaging" the app for release
Hi, the default
profile.release
forCargo.toml
is:It doesn't enable LTO which can be achieved easily by adding:
As you can see in this screenshot, the first build binary has release size of
56mb
and after applyingopt-level='s'
, the binary size gets down to32mb
and the last build results in36mb
which performs LTO onlyThe text was updated successfully, but these errors were encountered: