Closed minimalisticMe closed 11 months ago
Hi,
You may not have enough samples to train, try giving more
I apologize the late answer, it took me some time to procure some more test data. Now with >12.000 json-files it is working just fine :)
How much did the compression improved with a trained dictionary?
One question, if i compress data with my custom trained dictionary i could then decompress it without loading my dictionary?
No
Hi,
after the recent update there is a new function
ZstdSharp.DictBuilder.TrainFromBufferFastCover
, which I think enriches this library massively and makeszstd
perfect for.NET
usage. I want to try and train a custom compression dictionary but have trouble getting results.Here is my code roughly minimized. First I collect a list of
byte[]
by reading all files (json
files) and adding them to a listAfter that I want to train them by calling
and write the result to a file for future use.
However calling
ZstdSharp.DictBuilder.TrainFromBufferFastCover
results in the following error and I don't know how to handle this correctly:How do I train a custom dictionary on my own files correctly?