From a87da4b19a6da67dde15d1d0ceefaad2bdad1637 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 9 Apr 2021 08:18:49 -0400 Subject: [PATCH] Improve incremental build time (#10039) Unfortunately this increases the release build size by 8M ``` | | incremental build | full build | binary size | |--------|-------------------|------------|-------------| | main | 4m 21s | 6m 24s | 72M | | #10039 | 1m 45s | 5m 28s | 80M | ``` --- Cargo.toml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bdfcd2adbd..a22ff581b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,17 +20,6 @@ exclude = [ "std/hash/_wasm" ] - -[profile.release] -codegen-units = 1 -lto = true -opt-level = 'z' # Optimize for size - -[profile.bench] -codegen-units = 1 -lto = true -opt-level = 'z' # Optimize for size - # Optimize these packages for perf [profile.release.package.rand] opt-level = 3