4 ms·
When to use dictionary compression (2018)
- dang 7y agoDiscussed at the time: https://news.ycombinator.com/item?id=16398752 https://news.ycombinator.com/item?id=16398752
- whoisburbansky 7y agoI'm able to follow the article right up to the point where the author talks about replacing streaming with dictionary compression. How does this work, exactly? Don't you still need the same number of back and forth messages, since the protocol doesn't change?
- wmf 7y agoYes, the number of messages is the same. For small messages, per-message overhead may swamp the benefit of compression.
- ignoramous 7y agoCloudflare and Akamai proposed optional dictionary-compression for HTTP [0] that could help smaller files achieve better compression ratios than gzip/deflate [1]. Given the fact that zipf distribution holds true for natural languages [2], dictionaries can be a simpler solution to text compression in low-power / compute environments? [0] https://tools.ietf.org/id/draft-vkrasnov-h2-compression-dictionaries-03.html https://tools.ietf.org/id/draft-vkrasnov-h2-compression-dict... [1] https://blog.cloudflare.com/improving-compression-with-preset-deflate-dictionary/ https://blog.cloudflare.com/improving-compression-with-prese... [2] https://www.youtube-nocookie.com/embed/fCn8zs912OE https://www.youtube-nocookie.com/embed/fCn8zs912OE