A tiny archiver for text data compression using Shannon-Fano algorithm
Most valuable to large data. Supported formats:
txttotxttxttortfrtftotxtrtftortf
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
.sfextension
./archiver unpack --method sf <filename>or shorted./archiver unpack -m sf <filename>- Optional flag:
--extensionor-eused 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:
