From 2b39ad2a63fb2ecd8c6b402485df43ffc52017a9 Mon Sep 17 00:00:00 2001 From: Alex Markuze Date: Fri, 5 Aug 2022 19:42:39 +0300 Subject: [PATCH] [Build Profile] Optimising the relase build profile --- Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a5a884ce33d0c..46f28485a4328 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -151,6 +151,14 @@ default-members = [ debug = true overflow-checks = true +[profile.performance] +inherits = "release" +opt-level = 3 +debug = true +overflow-checks = false +lto = true +codegen-units = 1 + [profile.cli] inherits = "release" debug = false