In python implementation:
I tried compressing some 491KB file and it resulted as:
Original file size: 491compressed file size: 732Compression ratio: -49.083503054989805
So I've made some improvements to the Huffman coding implementation that I believe could benefit this ( forked here ). The main changes include:
Bit-level encoding and decoding for improved memory efficiency and performance
In python implementation: I tried compressing some 491KB file and it resulted as:
Original file size: 491
compressed file size: 732
Compression ratio: -49.083503054989805
So I've made some improvements to the Huffman coding implementation that I believe could benefit this ( forked here ). The main changes include:
with
statementsencode_file()
anddecode_file()
methodsThese changes aim to: