From 0a0faf188467bb33bfe2ecb36c53a34c13b7bba5 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 20 Jul 2026 15:37:56 +0000 Subject: [PATCH] fix(build-native): switch pkg compression from Zstd to Brotli Zstd was measured (Linux x64, packages/cli, --help) to roughly double peak RSS versus GZip/Brotli/uncompressed (~555 MB vs ~283 MB) and be the slowest to start, consistent with the Windows OOM reports since this repo switched GZip -> Zstd in a563769. Brotli matches baseline memory, starts faster than Zstd, and produces the smallest binary of all four compression modes tested. packages/scanner/bin/build-native is a symlink to this file, so both packages pick up the change. --- packages/cli/bin/build-native | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/bin/build-native b/packages/cli/bin/build-native index 3b8d442eee..d8cbfa372f 100755 --- a/packages/cli/bin/build-native +++ b/packages/cli/bin/build-native @@ -7,7 +7,7 @@ set -e # Otherwise every target will be built. OS="${1}" ARCH="${2:-x64}" -ARGS="--config package.json --compress Zstd" +ARGS="--config package.json --compress Brotli" PKG_NAME=$(node -p "require('./package.json').name.split('/').pop()") # check if OS is set and OS/ARCH is the same as the current system.