Look for a .NET dictionary-based text compression library

I am looking for a compression library based on the .NET dictionary that would allow me to "pinpoint" it with a large list / string of common words that it will use to create its own dictionary.

The reason I want it for LZMA and the like is because I want to compress short strings myself, all of which are very similar to each other. Visualize the compression of a simple children's book, but compress each page separately. If we were squeezing the whole book, LZMA would be good, but it was not so good for shorter lines.

Is there such a thing?

+1
source share
2 answers

zlib provides dictionary-based compression. The deflateSetDictionary () and inflateSetDictionary () functions do exactly what you are describing.

+2
source

Built-in GZip: GZipStream class . You must deploy it as a SQLCLR UDF function for your needs, see How to create and run a custom SQL Server function using Common Language runtime integration

0
source

Source: https://habr.com/ru/post/1402486/


All Articles