add arithmetic coding

This commit is contained in:
Jack Wines 2024-12-21 12:28:00 -05:00
parent 6d00525334
commit 791fff6107
Signed by: Jack
SSH key fingerprint: SHA256:AaP2Hr/e3mEjeY+s9XJmQqAesqEms8ENRhwRkpO0WUk
11 changed files with 667 additions and 194 deletions

View file

@ -43,6 +43,7 @@ executable compress
src
build-depends:
base,
basement,
bitvec,
bytestring,
cereal,
@ -50,12 +51,20 @@ executable compress
text,
uuid,
optparse-generic,
vector
vector,
nonempty-containers,
primes
default-language:
GHC2021
other-modules:
Data.PQueue
-- ghc-options:
-- -fprof-auto
-- -fprof-late
-- "-with-rtsopts=-p -hc"
Data.FiniteBit
Compress.Huffman
Compress.PrefixTree
Data.HuffmanTree
Compress.Arithmetic
ghc-options:
-threaded
-fprof-auto
-fprof-late
"-with-rtsopts=-p -hc"