| ▲ | Retr0id 2 days ago | |
There are also deflate-specific tricks you can use - just spam empty non-final blocks ad infinitum.
If you want to spin more CPU, you'd probably want to define random huffman trees and then never use them. | ||
| ▲ | Retr0id 2 days ago | parent [-] | |
I had claude implement the random-huffman-trees strategy and it works alright (~20MB/s decompression speed), but a minimal huffman tree that only encodes the end symbol works out even slower (~10MB/s), presumably because each tree is more compact. The minimal version boils down to: | ||