From 84338cc8274feafa7b2618983e58b8d67b59dc0f Mon Sep 17 00:00:00 2001 From: June Date: Sat, 5 Aug 2023 13:30:52 -1000 Subject: [PATCH] aggressive optimisations Signed-off-by: June --- Cargo.toml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a0ec2547..7a90679c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -156,14 +156,20 @@ lto = 'off' incremental = true [profile.release] -lto = 'thin' -incremental = true -codegen-units=32 +lto = 'fat' +incremental = false +codegen-units=1 +opt-level = 3 +overflow-checks = true +strip = "symbols" +panic = "abort" # If you want to make flamegraphs, enable debug info: # debug = true # For releases also try to max optimizations for dependencies: [profile.release.build-override] opt-level = 3 +codegen-units=1 [profile.release.package."*"] opt-level = 3 +codegen-units=1