3 ms·
Since the article touches Huffman encoding, wouldn't "#f00" and "#00f" compress better, than "red" and "#00f"? Minimizing uncompressed size is not what you want
by zzzcpan 9y ago
Since the article touches Huffman encoding, wouldn't "#f00" and "#00f" compress better, than "red" and "#00f"? Minimizing uncompressed size is not what you want to pursue.
- chrismorgan 9y agoIt’s covered in the “Trial and Error” section.
- zzzcpan 9y agoOh, thanks, didn't notice it. I found compressed size to be rather unpredictable and unintuitive, especially if the size of your file is significantly larger, than 100 bytes.
- gpvos 9y agoThey try it at the end, and it apparently doesn't help for gzip, but it does for brotli in this case.