3 ms·
I believe the compression dictionary refers to [1], which is used to quickly match dictionary-compressable byte sequences. I don't know where 170 KB comes from,
by lifthrasiir 2y ago
I believe the compression dictionary refers to [1], which is used to quickly match dictionary-compressable byte sequences. I don't know where 170 KB comes from, but that hash alone does take 128 KiB and might be significant if it can't be easily recomputed. But I'm sure that it can be quickly computed on the loading time if the binary size is that important.
[1] https://github.com/google/brotli/blob/master/c/enc/dictionary_hash.c https://github.com/google/brotli/blob/master/c/enc/dictionar...
- lxgr 2y agoI was wondering that too, but that dictionary itself compresses down to 29 KB (using regular old gzip), so it seems pretty lightweight to include even if it were hard/annoying to precompute at runtime or install time.
- lifthrasiir 2y agoOnce installed it will occupy 128 KiB of data though, so it might be still relevant for the Chromium team.