zinc.cr

Zstd in Crytal

zinc

Pure-Crystal Zstandard (RFC 8878). No libzstd, no FFI.

Scope

In v0.1:

  • Decoder: full RFC 8878 (handles all C-produced levels 1..22)
  • Encoder: fast-mode negative levels + positive levels 1..12 (fast, dfast, greedy, lazy, lazy2)
  • Dictionary loading (raw-content + magic-prefixed)
  • Dictionary training (FastCOVER)
  • Bounded decompression
  • xxhash64 frame checksum (via anykeyh/xx_hash)
  • One-shot API: Zinc.compress / Zinc.decompress

Out v0.1 (v0.2+):

  • Encoder strategies btlazy2, btopt, btultra (levels 13..22)
  • Streaming IO API
  • Long-range mode (--long)
  • AArch64 / NEON
  • x86_64 SIMD (hooks plumbed, not filled)

Install

dependencies:
  zinc:
    github: paddor/zinc

License

ISC

Repository

zinc.cr

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 2
  • 2 days ago
  • April 24, 2026
License

Links
Synced at

Fri, 24 Apr 2026 23:49:18 GMT

Languages