A tiny archiver for text data compression using Shannon-Fano algorithm
Most valuable to large data. Supported formats:
txt
totxt
txt
tortf
rtf
totxt
rtf
tortf
There are two ways:
- Clone the repo and build the project using
go build
- Download a released binary here
./archiver pack --method sf <filename>
or shorted./archiver pack -m sf <filename>
- This will generate a new compressed file with
.sf
extension
./archiver unpack --method sf <filename>
or shorted./archiver unpack -m sf <filename>
- Optional flag:
--extension
or-e
used for decompressing target file to a specific extension - Available options:
txt
(default),rtf
- This will generate a new decompressed file
Feel free to play around with files in the /examples
dir
Depending on a data content compression efficiency could be up to 60%.
Compression and decompression results: