From 07825a5ad0909a6db5102fb3873b86a9ac77a671 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Fri, 4 Sep 2026 18:08:11 +0000 Subject: [PATCH 1/2] Use fast gzip compression level 1 in ClusterFuzz bundling Reduces compression time from ~67s to ~6.5s with a ~18MB / 9.5% increase in bundle size. --- scripts/bundle_clusterfuzz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bundle_clusterfuzz.py b/scripts/bundle_clusterfuzz.py index 941384cfc40..4016b72f10d 100755 --- a/scripts/bundle_clusterfuzz.py +++ b/scripts/bundle_clusterfuzz.py @@ -115,7 +115,7 @@ '--disable-relaxed-atomics', ] -with tarfile.open(output_file, "w:gz") as tar: +with tarfile.open(output_file, 'w:gz', compresslevel=1) as tar: # run.py run = os.path.join(shared.options.binaryen_root, 'scripts', 'clusterfuzz', 'run.py') print(f' .. run: {run}') From a25c8fdbeecc662caf4210a822f00fe15ec871be Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Fri, 4 Sep 2026 21:21:50 +0000 Subject: [PATCH 2/2] review comment --- scripts/bundle_clusterfuzz.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/bundle_clusterfuzz.py b/scripts/bundle_clusterfuzz.py index 4016b72f10d..96940af3c47 100755 --- a/scripts/bundle_clusterfuzz.py +++ b/scripts/bundle_clusterfuzz.py @@ -115,6 +115,7 @@ '--disable-relaxed-atomics', ] +# Use fast compression (level 1) to speed up bundling with only a modest size increase. with tarfile.open(output_file, 'w:gz', compresslevel=1) as tar: # run.py run = os.path.join(shared.options.binaryen_root, 'scripts', 'clusterfuzz', 'run.py')