compress/README.md
Jack Wines 37e28f8c0e
main shows compression ratios again
README also updated to show compression ratios.
2024-04-15 02:04:01 -07:00

712 B

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