From be340c0f82ba70fa6583d2a5e5440d0b314c1414 Mon Sep 17 00:00:00 2001 From: Toshit Chawda Date: Sat, 3 Feb 2024 17:06:24 -0800 Subject: [PATCH] optimize for speed --- Cargo.toml | 2 +- client/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2e7eb18..032dadf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/client/build.sh b/client/build.sh index 6b0a324..5439060 100755 --- a/client/build.sh +++ b/client/build.sh @@ -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")