Fast Static Symbol Tables compression for Elixir.
FSST is a pure Elixir port with an optional Rustler backend planned around
fsst-rs. The API follows typical
Elixir conventions: train/2 returns {:ok, table} or {:error, reason},
while train!/2, compress!/3, and decompress!/3 raise on failure.
Summary
Functions
Returns the backend module selected for the current options and runtime.
Compresses a binary with a table returned by train/2.
Compresses a binary or raises on failure.
Decompresses a binary with the same table used for compression.
Decompresses a binary or raises on failure.
Trains an FSST table from representative binary samples.
Trains an FSST table or raises when training fails.
Types
@type reason() :: :backend_unavailable | :invalid_input | :invalid_sample | :truncated_escape | term()
@type table() :: FSST.Table.t()
Functions
Returns the backend module selected for the current options and runtime.
Compresses a binary with a table returned by train/2.
Compresses a binary or raises on failure.
Decompresses a binary with the same table used for compression.
Decompresses a binary or raises on failure.
Trains an FSST table from representative binary samples.
Trains an FSST table or raises when training fails.