Skip to content

Commit

Permalink
perf: enable LTO and set codegen-units to 1
Browse files Browse the repository at this point in the history
Reduces the WASM size from 473K to 405K
  • Loading branch information
merceyz committed Nov 2, 2024
1 parent faac980 commit 8067f29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ indexmap = "2.4.0"
sqlite3-parser = "0.13.0"
wasm-bindgen = "0.2.93"
sqlx-sqlite = { git = "https://github.com/merceyz/sqlx.git", rev = "d4c0dbdd09b107f942bb464e2adc0439153a21e2" }

[profile.release]
lto = true
codegen-units = 1

0 comments on commit 8067f29

Please sign in to comment.