Skip to content

Commit 8067f29

Browse files
committed
perf: enable LTO and set codegen-units to 1
Reduces the WASM size from 473K to 405K
1 parent faac980 commit 8067f29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

parser/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ indexmap = "2.4.0"
1111
sqlite3-parser = "0.13.0"
1212
wasm-bindgen = "0.2.93"
1313
sqlx-sqlite = { git = "https://github.com/merceyz/sqlx.git", rev = "d4c0dbdd09b107f942bb464e2adc0439153a21e2" }
14+
15+
[profile.release]
16+
lto = true
17+
codegen-units = 1

0 commit comments

Comments
 (0)