Skip to content

No stable zdict.h API for rolling your own dictionaries #1816

@nigeltao

Description

@nigeltao

lib/dictBuilder/zdict.h has the ZDICT_trainFromBuffer function to train a dictionary. There's other API (e.g. ZDICT_params_t, ZDICT_finalizeDictionary) that lets you create a dictionary from your own training algorithm. But that other API is not stable: it's behind an #ifdef ZDICT_STATIC_LINKING_ONLY guard, and my (Go) program does not static-link zstd.

See #1776 for motivation.

I know that "just bless the existing unstable API as stable" can be easier said than done. I just want a zstd-the-project issue to point people to if I'm asked why my program doesn't support zstd-the-format dictionaries yet.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions