No description
| src | ||
| .envrc | ||
| .gitignore | ||
| compress.cabal | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
Compresses files using Huffman coding. Please note that decompression isn't fully implemented yet. It is however implemented to the point where we know compression works correctly.
On The Great Gatsby in plain text on project Gutenberg, it achieves a 0.526 compression ratio when using a word size of two bytes. On an arbitrary RAW image, it peaks at .622 with a 32 bit word size and .645 with a 16 bit one.
To run with Nix:
nix run ".#" --experimental-features "nix-command flakes" -- myFile
To run with cabal:
cabal run . -- myFile