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
Changing profile.release.codegen-units to 1 (suggested in other issues) does not help. Fully
disabling ThinLTO passing -Z thinlto=no to rustc (is there a Cargo.toml setting for that?) fixes
the binary size problem without meaningfully affecting the compilation speed (if anything it's
slightly faster)
This is currently expected as ThinLTO doesn't optimize for program size as much as full-program LTO does. The defaults are switching back in #47521, so this should be closed once that merges.
nagisa
added
the
I-slow
Issue: Problems and improvements with respect to performance of generated code.
label
Jan 26, 2018
Original report: japaric/stm32f103xx-hal#44
STR
Changing
profile.release.codegen-units
to 1 (suggested in other issues) does not help. Fullydisabling ThinLTO passing
-Z thinlto=no
torustc
(is there a Cargo.toml setting for that?) fixesthe binary size problem without meaningfully affecting the compilation speed (if anything it's
slightly faster)
Meta
Given the severity of the issue I'm going to recommend my users to disable ThinLTO as I already do
with parallel codegen and incremental compilation.
cc @alexcrichton @aturon
cc #47745
The text was updated successfully, but these errors were encountered: