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"
1313[patch.crates-io]
1414sctk-adwaita = { path = "vendor/sctk-adwaita" }
1515
16[profile.release]
17lto = "fat"
18codegen-units = 1
19
1620# Shaping, rasterization and GPU submission stay optimised in debug builds, where
1721# unoptimised dependencies alone drop frames.
1822[profile.dev.package."*"]
tools/release_web.py+1-2
......@@ -22,8 +22,7 @@ PUBLISHED = Path('/Volumes/clover/Documents/Public/Snowbound/web')
2222# copyparty lists the folder itself, so the app is at its index.html.
2323URL = 'https://file.paperclover.net/shr/snowbound/web/index.html'
2424# 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',
26 '--config', 'profile.release.opt-level="s"']
25PROFILE = ['--config', 'profile.release.opt-level="s"']
2726
2827
2928def run(command, **kwargs):