November 29, 2026 · Product · 5 min read

Download PDF

Pruned 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.

NeoZip Desktop

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.

MethodArchiveCmprCompressTestUnzip
deflate16.44 MB5%1.15 s0.52 s0.93 s
zstd16.30 MB6%3.05 s0.35 s0.54 s
deflate+prune8.71 MB50%0.40 s0.21 s0.30 s
zstd+prune8.62 MB50%1.11 s0.18 s0.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):

MethodArchiveCmprCompressTestUnzip
deflate7.90 MB10%0.70 s0.34 s0.52 s
zstd7.71 MB12%2.60 s0.27 s0.39 s
deflate+prune6.94 MB21%0.40 s0.19 s0.27 s
zstd+prune6.74 MB23%0.88 s0.17 s0.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.

MethodArchiveCmprCompressTestUnzip
deflate1.10 MB3%0.24 s0.17 s0.20 s
zstd1.10 MB3%0.31 s0.16 s0.18 s
deflate+prune1.10 MB3%0.11 s0.15 s0.16 s
zstd+prune1.10 MB3%0.15 s0.15 s0.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.

Pruned archives

How shared-part Office pruning works across Desktop, CLI, and MCP — with the full benchmark tables.

Open /prune

← Back to all posts