authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-10-01 22:36:56-07:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-10-02 00:38:51-07:00
log9d07a3bb194eae46161a67803138348d98d0b7d4
tree816813df60f077d5eb982b464969fde951b90f9e
parent426cd8cd8b10a8ebc02af363750ce3144677e062
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU

feat: release builds use link-time optimisation

Assisted-by: claude-opus-5.5

2 files changed, 5 insertions(+), 2 deletions(-)

Cargo.toml+4
...@@ -13,6 +13,10 @@ wgpu = "30.0.1"...@@ -13,6 +13,10 @@ wgpu = "30.0.1"
13[patch.crates-io]13[patch.crates-io]
14sctk-adwaita = { path = "vendor/sctk-adwaita" }14sctk-adwaita = { path = "vendor/sctk-adwaita" }
1515
16[profile.release]
17lto = "fat"
18codegen-units = 1
19
16# Shaping, rasterization and GPU submission stay optimised in debug builds, where20# Shaping, rasterization and GPU submission stay optimised in debug builds, where
17# unoptimised dependencies alone drop frames.21# unoptimised dependencies alone drop frames.
18[profile.dev.package."*"]22[profile.dev.package."*"]
tools/release_web.py+1-2
...@@ -22,8 +22,7 @@ PUBLISHED = Path('/Volumes/clover/Documents/Public/Snowbound/web')...@@ -22,8 +22,7 @@ PUBLISHED = Path('/Volumes/clover/Documents/Public/Snowbound/web')
22# copyparty lists the folder itself, so the app is at its index.html.22# copyparty lists the folder itself, so the app is at its index.html.
23URL = 'https://file.paperclover.net/shr/snowbound/web/index.html'23URL = 'https://file.paperclover.net/shr/snowbound/web/index.html'
24# Size over speed where it costs little: the module is most of the first load.24# Size over speed where it costs little: the module is most of the first load.
25PROFILE = ['--config', 'profile.release.lto=true', '--config', 'profile.release.codegen-units=1',25PROFILE = ['--config', 'profile.release.opt-level="s"']
26 '--config', 'profile.release.opt-level="s"']
2726
2827
29def run(command, **kwargs):28def run(command, **kwargs):