Train dictionary for small files

Train a dictionary on similar small files, then compress each with it for big ratio gains

zstd --train samples/*.json -o dict.zstd && zstd -D dict.zstd file.json

tool
zstd2 commands
tags
zstdperformancedisk

More zstd commands

  • zstd -19 --long=27 -T0 huge.bin -o huge.bin.zst

    Level 19 with 128MB long-distance window, all cores; great ratio for logs/backups

all 2 zstd commands