ZIP peak memory: 89% lower

Same repository snapshot · 2,017 files · Go before and after

Before664 MiB
After71 MiB
Repeated downloadBeforeAfter
Total time39.3 s36.0 s
First body bytes149 ms39 ms
Contents verified2,017 / 2,017 match

MongoDB’s zstd buffers dominated the heap. Snappy reduces that cost; ZIP metadata now arrives in batches and entry copies reuse one buffer.

One initial and one repeated request per build, sequential loopback runs. Memory is peak process-tree RSS during the repeated request; excludes database, Redis and client. Timing is indicative. ZIP directory metadata still grows with entry count.