build: optimize release profile for better performance

Upstream Tauri fixed the stack overflow in the invoke handler
(https://github.com/tauri-apps/tauri/pull/14170) in v2.9.0,
so we can safely use opt-level 3 now.
This commit is contained in:
Tunglies
2025-10-21 00:14:58 +08:00
parent a5d3d6fc50
commit 8fc72814c8

View File

@@ -136,9 +136,9 @@ harness = false
[profile.release]
panic = "abort"
codegen-units = 16
codegen-units = 1
lto = "thin"
opt-level = 2
opt-level = 3
debug = false
strip = true
overflow-checks = false
@@ -156,8 +156,8 @@ rpath = false
[profile.fast-release]
inherits = "release"
incremental = true
codegen-units = 64
incremental = true
lto = false
opt-level = 0
debug = true