Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Compression

From the public Compressor down to the engine, match finders and entropy coding.

SpecificationScope
CompressorPublic encoder API, configuration lowering, one-shot calls, sessions, I/O adapters, errors and retention.
Encoder coreParameter resolution, engine lifecycle, the window model, the block pipeline, backend dispatch, match finders, LDM, entropy coding and output destinations.
Optimal parserbtopt/btultra/btultra2 and LDM: per-block SIMD dispatch, the shared binary-tree walk, match-length kernels, price tables.
Target compressed block sizeZSTD_c_targetCBlockSize: the superblock path that cuts a block into sub-blocks near a compressed size.
DictionariesRaw and Zstandard-format dictionaries on the encoder side: PreparedDictionary, parameter modes, attach / copy / load and entropy loading.
Parallel compressionFrame plans, overlap-primed segments, scoped batches, windowed streaming sessions with task queues, the parallel std::io adapters, errors and panic safety.
Encoder verificationByte-identity oracles, test suites and the overflow-correction build mode.

Architecture overview and module map