hrobeers / dicflate

DEFLATE tool with support for preset dictionaries using zlib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dicflate

DEFLATE tool with support for preset dictionaries using zlib

Quickstart

# Compress
dicflate -d my.dict < uncompressed > compressed.data

# Extract
dicflate -x -d my.dict < compressed.data > uncompressed

For more examples see tests.

Dependencies

Rationale

zlib's DEFLATE algorithm supports the use of preset dictionaries for compression of short strings (sequence of bytes). Unfortunately this functionality is not exposed by any of the mainstream compression tools. dicflate aims to fill this void.

Preset dictionaries can be usefull to reduce the size of self-describing serialization formats (e.g. JSON), without the need to shorten property names or other verbosities.

About

DEFLATE tool with support for preset dictionaries using zlib

License:MIT License


Languages

Language:C 67.6%Language:Shell 30.7%Language:Makefile 1.6%