optimize for speed

This commit is contained in:
Toshit Chawda 2024-02-03 17:06:24 -08:00
parent 9f1561fa76
commit be340c0f82
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
2 changed files with 2 additions and 2 deletions

View file

@ -7,4 +7,4 @@ rustls-pki-types = { git = "https://github.com/r58Playz/rustls-pki-types" }
[profile.release]
lto = true
opt-level = 'z'
opt-level = 3

View file

@ -11,7 +11,7 @@ wasm-bindgen --weak-refs --target no-modules --no-modules-global epoxy --out-dir
echo "[ws] bindgen finished"
mv out/epoxy_client_bg.wasm out/epoxy_client_unoptimized.wasm
time wasm-opt -Oz out/epoxy_client_unoptimized.wasm -o out/epoxy_client_bg.wasm
time wasm-opt -O4 out/epoxy_client_unoptimized.wasm -o out/epoxy_client_bg.wasm
echo "[ws] optimized"
AUTOGENERATED_SOURCE=$(<"out/epoxy_client.js")