Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/znippy-zoomies

lzip-parallel/README.md

lzip-rs

"Allfadern ser varje bit"

Pure Rust parallel ZIP decompressor for Windows/Linux/macOS .zip files. Reads the ZIP Central Directory, then decodes all DEFLATE entries in parallel using linflate (shared SIMD inflate engine).

1.8× faster than unzip -t on multi-core hardware.

Performance

Workload lzip unzip Speedup
2000-entry ZIP (6.9 MB compressed) 1.86 s 5.37 s 1.8×

Usage

lzip archive.zip -o dir/    # extract to directory
lzip archive.zip            # list entries to stdout

Architecture

  1. Parse ZIP End-of-Central-Directory (EOCD)
  2. Read Central Directory → build entry list
  3. For each entry: resolve local header → get compressed data pointer
  4. Parallel decode all entries via rayon (large entries also split internally at flush boundaries)
  5. Write/output in order

Ring-slot pipeline

Same architecture as lbzip2-rs / lgz-rs:

Dependencies

Crate Role
linflate SIMD DEFLATE decode (shared with lgz-rs)
rayon Parallel entry decode

Optional features

Sister projects

All at git.gunnar.rs/nordisk/znippy:

License

MIT OR Apache-2.0