Use Cranelift backend for debug builds
Using the current1 nightly toolchain and installing the Rustup component rustc-codegen-cranelift
, I saw a reduction from 5s to 4s for incremental debug builds of trivial harvester changes when switching to the Craneleft backend via
[profile.dev]
codegen-backend = "cranelift"
in .cargo/config.toml
. When the component is available on a stable toolchain, we should re-evaluate this on our cloud VM and most likely make use of it.
-
1.78.0-nightly (2d24fe591 2024-03-09)
↩