Filter Loading Sorry, something went wrong. Uh oh! There was an error while loading. Please reload this page.
v1.0.0 is a major release, and the stability release: the format is frozen, the C API is settled, and the compressed bytes do not change.
Its codename is Hydrogen, element 1. Each later major or minor releases will take their codenames from the next elements of Mendeleev's periodic table. Patch releases keep the codename of their series.
Format v9 is frozen. Archives written by v0.15.0 decode as they are, and v1.0.0 writes byte-identical archives at levels 1 to 7. Any later format change is additive: newer readers keep reading older archives.
What does change is the surface around those bytes. Settings move from option structs to parameters set on a context, which lets the API grow without breaking the ABI. The CLI now keeps its input files by default, and the bindings verify checksums by default when decoding.
⚠️ Breaking change (API, ABI, CLI and bindings). No archive migration from v0.15.x. The soname moves to libzxc.so.6, so programs linked against libzxc.so.5 must be rebuilt, and C callers must update their source. Go users must update their imports: the module moves to github.com/hellobertrand/zxc/bindings/go. These behaviours change silently or at run time:
Coming from v0.14.x or older, archives still need the one-time transcode, as format v9 only reads v9:
zxc-old -dc old.zxc | zxc-new -z -c > new.zxc Full guide, with a call-by-call table for the C API: docs/MIGRATION.md.
Format v9 keeps the wire layout of v0.15.0. From this release on, docs/FORMAT.md, the conformance vectors and the golden archives are the reference.
Option structs were part of the ABI, so adding a field changed their layout. Parameters are appendable identifiers, so new settings no longer break it.
zxc_cctx* c = zxc_create_cctx(); zxc_cctx_set_param(c, ZXC_C_LEVEL, 5); zxc_cctx_set_param(c, ZXC_C_CHECKSUM, 1); zxc_compress_cctx(c, src, n, dst, cap); zxc_free_cctx(c); Parameters. zxc_cctx_set_param() / zxc_dctx_set_param() and their getters, with bounds from zxc_cparam_bounds() / zxc_dparam_bounds(). 0 restores the default, and a new ZXC_ERROR_BAD_PARAM reports an invalid value or identifier. One-shot calls. zxc_compress(src, n, dst, cap, level) and zxc_decompress(src, n, dst, cap) take nothing else. Checksums and dictionaries need a context. Dictionaries are copied on attach. zxc_cctx_set_dict() / zxc_dctx_set_dict() leave the caller free to release its buffers as soon as they return. One dictionary prefix. zxc_train_dict -> zxc_dict_train_content, zxc_train_dict_huf -> zxc_dict_train_huf, zxc_dict_id -> zxc_dict_compute_id, zxc_dict_get_id -> zxc_dict_read_id. Bound functions return size_t. zxc_compress_bound(), zxc_compress_block_bound(), zxc_decompress_block_bound() and zxc_estimate_cctx_size() drop uint64_t. An input too large for the platform returns 0 instead of wrapping. Run-time version. zxc_version_number() and zxc_version_codename() report the loaded library (#545, #560). Streams take a context. zxc_stream_compress(), zxc_stream_decompress(), zxc_cstream_create() and zxc_dstream_create() read their parameters from a const context. Performance Single-threaded speed is unchanged from v0.15.0: within 2 % on Neoverse-V2, Zen 5 and Zen 3 for both compression and decompression. The compressed sizes are identical.
Decompression lead over the codec with the nearest ratio, on Silesia (202 MB), single thread, lzbench 2.4.1. ZXC is also smaller in every pairing.
In absolute terms, level 1 decodes at 14.8 GB/s on Apple M3 and 11.7 GB/s on Zen 5, and level 3 at 11.0 GB/s and 8.3 GB/s. Full tables: README and WHITEPAPER.
The reference client moves from Apple M2 to Apple M3, so the M3 figures cannot be compared with those published for v0.15.0. The benchmarks also move to lzav 5.20.
Single-threaded ranges decode directly into the caller's buffer when it is safe, as the one-shot API does. Multi-threaded workers claim batches of consecutive blocks by size, as the FILE* engine does. Silesia on Apple M3, 8 threads, against the previous code:
-T N and the thread parameters now always mean N encode or decode workers, with the reader and writer threads on top. Auto-detection uses the online processors minus one, unless the workers do their own reads.
Thanks to @Vladexy88x for finding and fixing the CLI data-loss bug (#550, #555) and the Go handle leaks (#533), to @jeanga for the Windows kernel-mode library (#513) and continued testing, and to @GeekQAQ for the context report (#532).
Thanks to @chmike, author of zxc-go, a native Go encoder and decoder that needs no cgo, and whose suggestion started the seekable in-place work (#562).
A 1.0 is also the moment to thank those it stands on: @MarcinZukowski for PivCo-Huffman, @rygorous for the breakdown of its merge operations, @inikep (lzbench) and @powturbo (TurboBench) for the independent benchmarks, and @nuberchardzer1 for the Python binding.
There was an error while loading. Please reload this page.




