3 ms·
It is hard to judge ahead of time and yeah it depends on the dictionary size. It is hard to argue concretely about hypotheticals. It would be a fun experiment
by bhouston 3y ago
It is hard to judge ahead of time and yeah it depends on the dictionary size. It is hard to argue concretely about hypotheticals.
It would be a fun experiment to figure out the compression ratio of say the top 1000 packages given a shared brotli dictionary of X size. Just keep increases the dictionary size until you see diminishing returns.
My estimate is based on NPM packages contain a bunch of super stereotypical files that if they are used to create the dictionary likely result in amazing compression ratios: package.json, package-lock.json, CSS, Tailwind, Bootstrap .gitignore, LICENSE, .eslint, README, React/Vue/Angular code...