Skip to content

Commit 54db827

Browse files
committed
Allow multi-threaded release builds and less aggressive LTO
This is fine as the possible optimisations with a single thread are nothing we benefit from, or know we benefit from. So let's prefer lower latency over imaginary performance improvements. Further, LTO *should* be worth it ("thin") but not at all cost (true/"fat"), so let's dial that in as well.
1 parent 738ce2d commit 54db827

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ jobs:
187187
gir1.2-webkit2-4.1=2.44.0-2;
188188
189189
- uses: actions/download-artifact@v5
190+
name: Download SvelteKit build output
190191
with:
191192
name: sveltekit-build
192193
path: ./apps/desktop/build/

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ rmcp = { version = "0.1.5" }
100100
serde_json_lenient = "0.2.3"
101101

102102
[profile.release]
103-
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
104-
lto = true # Enables link to optimizations
103+
lto = "thin" # Enables link to optimizations, but don't go all out on compile time.
105104
opt-level = "s" # Optimize for binary size
106105

107106
[profile.bench]

0 commit comments

Comments
 (0)