Rendered at 14:17:16 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
derf_ 12 hours ago [-]
This is a good optimization when you can use it, but it is somewhat uncommon to decode a large number of consecutive symbols using the same Huffman code. Actual compression formats switch between multiple codes, as one switches between decoding prediction modes, literals, run lengths, offsets, and etc., and more importantly, you often do not know the code that will be used for the next symbol before you have decoded the previous symbols. That all makes it rather difficult to apply in practice.
atiedebee 6 hours ago [-]
It depends on the format. Brotli switches the Huffman codes used based on the previously decoded bytes, but gzip and bzip2 for example use the same Huffman codes for a bigger block of data. But even then, there might be some more details that you'd need to work out, like the decoding of LZ offsets.
kgabis 4 hours ago [-]
I was happy to confirm my suspicion that the author is polish and the name is indeed a pun (piwko being a small beer in polish).
jkhdigital 14 hours ago [-]
I love this kind of thing—going to try and use this in my data structures course.