Skip to content

Commit 1250609

Browse files
committed
perf(cli): Speed up with codegen-units
On `rust-lang/rust`, this took `typos --format silent` times from ~24s to ~18s. Enabling `lto = "thin"` was about the same as `lto = true` and was sub-second improvement.
1 parent da27591 commit 1250609

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ panic = "abort"
2626

2727
[profile.release]
2828
panic = "abort"
29+
codegen-units = 1

0 commit comments

Comments
 (0)