No description
Find a file
2024-04-15 02:58:48 -07:00
src dependency bump & fourmolu 2024-04-15 02:58:48 -07:00
.envrc compression works 2024-04-13 02:13:24 -07:00
.gitignore dependency bump & fourmolu 2024-04-15 02:58:48 -07:00
compress.cabal intmap-based priority queue change 2024-04-14 23:34:16 -07:00
flake.lock dependency bump & fourmolu 2024-04-15 02:58:48 -07:00
flake.nix dependency bump & fourmolu 2024-04-15 02:58:48 -07:00
fourmolu.yaml dependency bump & fourmolu 2024-04-15 02:58:48 -07:00
README.md main shows compression ratios again 2024-04-15 02:04:01 -07:00

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