News for hackers. Stuff that matters.
Re:Compression efficiency with shared dictionaries in Chrome by netol on Wednesday March 06, 2024 @02:48PM (#39620446)
The part I'm missing is how these dictionaries are created. Can I use the homepage to create my dictionary, so all other pages that share html are better efficiently compressed? How?
Re:Compression efficiency with shared dictionaries in Chrome by patrickmeenan on Wednesday March 06, 2024 @07:17PM (#39623532)
For a delta update of one version of a resource to the next, the resource itself is the dictionary (i.e. JS file).

For stand-alone dictionaries, the brotli code on github has a dictionary_generator that you can use to generate a dictionary. You give it a dictionary size and a bunch of input files and it will generate one. I have a version of it hosted on https://use-as-dictionary.com/ that you can pass up to 100 URLs to and it will generate a dictionary for you (using the brotli tool).

Re:Compression efficiency with shared dictionaries in Chrome by netol on Thursday March 07, 2024 @07:28AM (#39628229)
Cool, thanks!