From 12506092722e5dc8dc33a94a976616087223aa6c Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 18 Sep 2023 14:04:32 -0500 Subject: [PATCH] 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. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 8ffd309..5289d16 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,3 +26,4 @@ panic = "abort" [profile.release] panic = "abort" +codegen-units = 1