Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dictionary support in compression #204

Open
heikkisalokantosc opened this issue Mar 17, 2023 · 1 comment
Open

Dictionary support in compression #204

heikkisalokantosc opened this issue Mar 17, 2023 · 1 comment

Comments

@heikkisalokantosc
Copy link

Request to add CompressBlockWithDict(src, dst, dict []byte).

Decompression with dictionary seems to be already supported by UncompressBlockWithDict(src, dst, dict []byte).

It could also use some documentation regarding the format of the dictionary and how to generate it. Probably this still applies:

lz4 doesn't specify how to build a dictionary. All it says is that it can be any file up to 64 KB.
This approach is compatible with zstd dictionary builder, which can be instructed to create a 64 KB dictionary with this command: zstd --train dirSamples/* -o dictName --maxdict=64KB

@pierrec
Copy link
Owner

pierrec commented Jan 8, 2024

Happy to add it, open to PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants