mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
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:
@@ -136,9 +136,9 @@ harness = false
|
|||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
codegen-units = 16
|
codegen-units = 1
|
||||||
lto = "thin"
|
lto = "thin"
|
||||||
opt-level = 2
|
opt-level = 3
|
||||||
debug = false
|
debug = false
|
||||||
strip = true
|
strip = true
|
||||||
overflow-checks = false
|
overflow-checks = false
|
||||||
@@ -156,8 +156,8 @@ rpath = false
|
|||||||
|
|
||||||
[profile.fast-release]
|
[profile.fast-release]
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
incremental = true
|
|
||||||
codegen-units = 64
|
codegen-units = 64
|
||||||
|
incremental = true
|
||||||
lto = false
|
lto = false
|
||||||
opt-level = 0
|
opt-level = 0
|
||||||
debug = true
|
debug = true
|
||||||
|
|||||||
Reference in New Issue
Block a user