From eaba453515b08916a6136a65764f26dbeb419fdb Mon Sep 17 00:00:00 2001 From: Aryan Jain Date: Fri, 14 Mar 2025 15:00:51 +0530 Subject: [PATCH 1/2] feat: performance optimization --- src-tauri/Cargo.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 45ef1170..c376bd3f 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -24,3 +24,16 @@ log = "0.4" tauri = { version = "2.3.1", features = ["devtools"] } tauri-plugin-log = "2.0.0-rc" tauri-plugin-fs = "2" + +[profile.dev] +incremental = true # Fast rebuilds during development + +[profile.release] +incremental = false +codegen-units = 1 # Use one code generation unit to improve cross-module optimization +lto = true # Enable Link Time Optimization to optimize across the entire binary +opt-level = "z" # Optimize aggressively for binary size (use "s" if you prefer a balance with speed) +panic = "abort" +strip = true +debug = false +debug-assertions = false From ce85ad54318d4ca6af93347e3d3af4e13bd4bb20 Mon Sep 17 00:00:00 2001 From: Aryan Jain <117700812+gitsofaryan@users.noreply.github.com> Date: Fri, 14 Mar 2025 15:13:51 +0530 Subject: [PATCH 2/2] s binaries --- src-tauri/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index c376bd3f..5f7d34d9 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -32,7 +32,7 @@ incremental = true # Fast rebuilds during development incremental = false codegen-units = 1 # Use one code generation unit to improve cross-module optimization lto = true # Enable Link Time Optimization to optimize across the entire binary -opt-level = "z" # Optimize aggressively for binary size (use "s" if you prefer a balance with speed) +opt-level = "s" # Optimize for small binary size. panic = "abort" strip = true debug = false