Skip to content

Commit 2e96317

Browse files
committed
chore: update trimming sample
1 parent deca2de commit 2e96317

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

samples/bench/rust/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ codegen-units = 1
1616
lto = true
1717
opt-level = 3
1818
panic = "abort"
19-
strip = true

samples/trimming/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ To test and measure build size:
99
| | Raw | Brotli |
1010
|-------------|-------|--------|
1111
| .NET 8 | 2,298 | 739 |
12-
| .NET 9 LLVM | 1,749 | 520 |
12+
| .NET 9 LLVM | 1,737 | 518 |

samples/trimming/cs/Trimming.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<BootsharpEmbedBinaries>false</BootsharpEmbedBinaries>
88
<!-- Disabling non-essential .NET features reduces minimal build size by ~35%. -->
99
<BootsharpAggressiveTrimming>true</BootsharpAggressiveTrimming>
10+
<!-- Optimize the compiled WASM binary for size. -->
11+
<BootsharpOptimize>size</BootsharpOptimize>
1012
</PropertyGroup>
1113

1214
<ItemGroup>

0 commit comments

Comments
 (0)