logoalt Hacker News

userbinator • today at 3:48 AM • 1 reply • view on HN

You don't. Any real compression algorithm, including all the other standard ones, doesn't need such a thing.


Replies

Dylan16807 • today at 7:20 AM

Many compression formats support static dictionaries, and for a good reason. Short messages don't compress well. If you know a bunch of common data for a context, you can make the first several kilobytes compress a lot better.