if u want to pick the best compression utility for your case you should consider these key points:
- ..
- ...
- gzip
- zstd
- zip
- 7zip
- bz
- tar
- ??
- move code from here to dedicated algo repo
- write script which will run some benchmarks to compare time/ratio of different archivers on given data
mkdir build
cd build
cmake ../
make
Run ./test_lzw
without arguments to see help message. Same works with other binaries.
Generate compressed file:
./test_lzw -c ../tests/data/input ../tests/data/compressed
Search in compressed file:
./test_slg_search ../tests/data/compressed ../tests/data/patterns
Collection of some compression algorithms: