From c2130dccb9644fa658f07838ad39e2835fd6e512 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Wed, 18 Mar 2026 11:01:57 +0100 Subject: [PATCH] [clsi] use cheapest gzip compression level for history snapshot (#32251) memoir manual with 1.5MiB snapshot: level |load/decompress time | store/compress time | size | ratio | total sync time --- | --- | --- | --- | --- | --- 6 | 18ms | 57ms | 412KiB | 26% | 88ms 1 | 17ms | 28ms | 509KiB | 32% | 53ms 0 | 8ms | 10ms | 1578KiB | 0% | 33ms total sync: read snapshot, walk dir, sync files to disk, save snapshot GitOrigin-RevId: a2b1ee063af5aa749014f942db5e08bb1e685848 --- services/clsi/app/js/HistoryResourceWriter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/clsi/app/js/HistoryResourceWriter.js b/services/clsi/app/js/HistoryResourceWriter.js index c2f766fdbc..3fb68dd5d1 100644 --- a/services/clsi/app/js/HistoryResourceWriter.js +++ b/services/clsi/app/js/HistoryResourceWriter.js @@ -200,7 +200,9 @@ async function saveSnapshot( globalBlobs, localBaseVersion, rawSnapshot: snapshot.toRaw(), - }) + }), + // use cheapest gzip compression level + { level: 1 } ), { flag: 'wx' } )