November 29, 2026 · Product · 5 min read
Download PDFPruned Archives Cut a Word Document Corpus Nearly in Half
CLI compression-bench numbers on a sample corpus of 253 Microsoft Word (.docx) files: 17.29 MB → 8.62 MB with zstd+prune (50%) vs ~16 MB plain ZIP/zstd — plus when prune wins less.
Zipping a folder of Microsoft Word (.docx) files usually saves almost no space — each document is already a compressed ZIP container internally. To measure what NeoZip pruning does on a real-world folder of standard Word documents, we tested a sample corpus of 253 files (17.29 MB total). Plain deflate landed at 16.44 MB and plain zstd at 16.30 MB. With zstd+prune, the same folder compressed to 8.62 MB (50% cmpr) — nearly half the archive size without losing a byte of document content.
What prune does
Office containers (.docx, .xlsx, .pptx, and related) often share fonts, styles, themes, and images across every file in a folder. Standard ZIP stores those parts again inside each document. NeoZip pruning stores each shared part once under META-INF/PRUNE/ using the PRUNE-ITEM method, and writes each document using the PRUNE method (with a NEO_PRUNE_METHOD extra field naming the underlying codec). Extracting with NeoZip rebuilds every file losslessly. Stock unzip lists the archive but refuses PRUNE and PRUNE-ITEM entries. PDFs are stored whole for now.
About the sample corpus & results
Rather than synthetic test files, we built a sample corpus from public-domain government documents: 253 public-domain 2025 Florida session-law chapters formatted as standard Microsoft Word (.docx) documents that share a common template (253 files, 17.29 MB on disk). It is representative of any organization archiving batches of Word reports, contracts, policies, or filings generated from shared templates. Best method: zstd+prune.
| Method | Archive | Cmpr | Compress | Test | Unzip |
|---|---|---|---|---|---|
| deflate | 16.44 MB | 5% | 1.15 s | 0.52 s | 0.93 s |
| zstd | 16.30 MB | 6% | 3.05 s | 0.35 s | 0.54 s |
| deflate+prune | 8.71 MB | 50% | 0.40 s | 0.21 s | 0.30 s |
| zstd+prune | 8.62 MB | 50% | 1.11 s | 0.18 s | 0.28 s |
When prune wins less
We also re-saved those same 253 documents directly from Microsoft Word (Save As DOCX). Word writes leaner per-file XML with less duplicated boilerplate, so the corpus drops to 8.77 MB before archiving and best prune compression is a more modest 23% (6.74 MB with zstd+prune vs 7.71 MB plain zstd):
| Method | Archive | Cmpr | Compress | Test | Unzip |
|---|---|---|---|---|---|
| deflate | 7.90 MB | 10% | 0.70 s | 0.34 s | 0.52 s |
| zstd | 7.71 MB | 12% | 2.60 s | 0.27 s | 0.39 s |
| deflate+prune | 6.94 MB | 21% | 0.40 s | 0.19 s | 0.27 s |
| zstd+prune | 6.74 MB | 23% | 0.88 s | 0.17 s | 0.26 s |
Finally, a small baseline folder of unrelated Office samples (15 files, 1.13 MB) has almost no repeated parts — prune stays near 3%, matching plain deflate and zstd. Prune pays off when a collection of Office documents shares templates, styling, fonts, or embedded assets.
| Method | Archive | Cmpr | Compress | Test | Unzip |
|---|---|---|---|---|---|
| deflate | 1.10 MB | 3% | 0.24 s | 0.17 s | 0.20 s |
| zstd | 1.10 MB | 3% | 0.31 s | 0.16 s | 0.18 s |
| deflate+prune | 1.10 MB | 3% | 0.11 s | 0.15 s | 0.16 s |
| zstd+prune | 1.10 MB | 3% | 0.15 s | 0.15 s | 0.15 s |
Methodology
- Source: neozip-cli compression bench REPORT.md, generated 2026-11-21.
- Host: darwin/arm64, Node v22.23.4. Level 9 for deflate / zstd / prune plain leftovers.
- Prune create used --no-verify so compress time excludes the post-create restore check; verify timed separately as test.
- Test / unzip used neozip extract (auto-rebuilds PRUNE entries). Times include CLI process start-up.
- Cmpr = round((1 − archive/input) × 100), floored at 0 — same formula as neozip list.
Try it
Create pruned archives with CLI neozip prune / neozip benchmark, Desktop Create Archive → Archive type Pruned, or MCP prune_* tools. Full feature walkthrough: /prune. Product pages: CLI, Desktop, MCP. Desktop 1.9.0-beta.1, CLI 1.98.0, and MCP 0.9.6-beta ship this prune-focused release.