|
[profile.release] |
|
codegen-units = 1 |
|
lto = true |
Compiling from source with cargo install is very slow due to setting codegen-units = 1.
Instead it'd be better to have a separate optimized profile for ci:
[profile.optimized-release]
inherits = "release"
opt-level = 3
lto = "fat"
codegen-units = 1
This way ci takes its time to produce optimized binaries, while installs with cargo install are not terribly slow.
markdown-oxide/Cargo.toml
Lines 37 to 39 in 46ec5ca
Compiling from source with
cargo installis very slow due to settingcodegen-units = 1.Instead it'd be better to have a separate optimized profile for ci:
This way ci takes its time to produce optimized binaries, while installs with
cargo installare not terribly slow.