]> git.ipfire.org Git - thirdparty/zstd.git/commit
Expose function to add entropy tables to pre-built dictionary. 194/head
authorGiuseppe Ottaviano <ott@fb.com>
Tue, 31 May 2016 01:49:58 +0000 (18:49 -0700)
committerGiuseppe Ottaviano <ott@fb.com>
Tue, 31 May 2016 02:50:09 +0000 (19:50 -0700)
commit370b751e2424024f719f95e75b7f3d18f5f0499c
tree5d351eead2ce6dd2fc40c892f8584c95c25f8dd6
parent6381e99fb21624887ba5224ed10a82f78173fc86
Expose function to add entropy tables to pre-built dictionary.

In some cases a custom dictionary building algorithm tailored for a specific
input can be more effective than the one produced by `ZDICT_trainFromBuffer`,
but with the current API it's not possible encode the entropy tables into the
custom-built dictionary.

This commit extracts the logic to add entropy tables to a dictionary from
`ZDICT_trainFromBuffer` and exposes it as a function
`ZDICT_addEntropyTablesFromBuffer`.
lib/dictBuilder/zdict.c
lib/dictBuilder/zdict.h