From d70fc70bf6aeda0312715948d37237d6d6e11964 Mon Sep 17 00:00:00 2001 From: Alexey Orlenko Date: Sat, 16 Aug 2025 17:47:49 +0200 Subject: [PATCH] build(qc): use `-Oz` level in wasm-opt Use `-Oz` optimization level in `wasm-opt` when building the query compiler and not `-Os`. The previous reasoning for using `-Os` that was specified in the comment is no longer true. --- query-compiler/query-compiler-wasm/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query-compiler/query-compiler-wasm/build.sh b/query-compiler/query-compiler-wasm/build.sh index 164d85c7286..2fda72ed64d 100755 --- a/query-compiler/query-compiler-wasm/build.sh +++ b/query-compiler/query-compiler-wasm/build.sh @@ -13,7 +13,7 @@ OUT_FOLDER="${2:-"query-compiler/query-compiler-wasm/pkg"}" OUT_TARGET="bundler" # wasm-opt pass WASM_OPT_ARGS=( - "-Os" # execute size-focused optimization passes (-Oz actually increases size by 1KB) + "-Oz" # execute size-focused optimization passes "--vacuum" # removes obviously unneeded code "--duplicate-function-elimination" # removes duplicate functions "--duplicate-import-elimination" # removes duplicate imports