Library

misa77 v0.8.0

Versionv0.8.0
Stars★ 177
Released2026-11-26

Ridiculously fast decompression at good ratios. misa77 is 1.5-3x faster than LZ4 and zstd for decompression on x86 and ARM (with ratios ranging all the way from LZ4 to zstd -22).

Release notes

## Highlights

- A new level 5, with a new entropy-coded stream format. On `silesia.tar` (Intel), level 5 compresses with a ratio of 24.79 and decodes at 2485 MB/s. This is the ratio class of `zstd -22` (24.67, 786 MB/s), at roughly 3 times the decode speed. However, it compresses slowly (0.85 MB/s).
- Decompression is now always safe. `decompress()` takes the compressed size and the destination capacity, and returns 0 on any corrupt or malicious input, at every level. The unsafe decoder and `dconfig` are gone from the public API.
- Hand-written assembly decode kernels for x86-64 (AVX2 and SSE2; Linux) and ARM64 (NEON; Linux and macOS), for all three formats. On Intel, the safe decoder is now faster at every level than 0.7.0's unsafe decoder (4 to 15 %), and 8 to 19 % faster than 0.7.0's safe decoder.
- The library now builds on Windows with MinGW, using the C++ decoders (but there are no assembly kernels for Windows yet).

## Benchmarks

Results for Intel x86-64 are in the [README](https://github.com/welcome-to-the-sunny-side/misa77/blob/v0.8.0/README.md#benchmarks), with the raw lzbench table archived under [misc/lzbench-results-archive/0.8.0/](https://github.com/welcome-to-the-sunny-side/misa77/tree/v0.8.0/misc/lzbench-results-archive/0.8.0). ARM and AMD results will follow.

Some results on Intel, `silesia.tar`:

| Compressor name   | Compression | Decompress. | Ratio |
| ----------------- | ----------- | ----------- | ----- |
| misa77 0.8.0 -1   |   54.2 MB/s |   5588 MB/s | 42.64 |
| **misa77 0.8.0 -5**   |   **0.85 MB/s** |  **2485 MB/s** | **24.79** |
| lz4 1.11.0        |    382 MB/s |   2530 MB/s | 47.32 |
| lz4hc 1.11.0 -12  |   7.83 MB/s |   2544 MB/s | 36.45 |
| lzav 7.2 -2       |   64.0 MB/s |   1655 MB/s | 34.54 |
| zstd 1.5.7 -22    |   1.39 MB/s |    786 MB/s | 24.67 |
| brotli 1.2.0 -11  |   0.41 MB/s |    254 MB/s | 23.79 |
| xz 5.8.4 -9       |   1.85 MB/s |   78.2 MB/s | 23.01 |

Level 5 decodes about as fast as `lz4`, at about half of `lz4`'s compressed size.

## Compatibility

- BREAKING (API): `decompress()` has a new signature, `decompress(src, src_size, dst, dst_cap)`. `src_size` must be the exact size of the compressed stream (what `compress()` returned), not the size of the buffer holding it. `dconfig` is removed.
- `config::max_level` is now 5, and there is a new constant `config::entropy_lb` (= 5).
- The light format (levels -1 to 3) and the heavy format (level 4) are unchanged. Light streams from 0.3.0 or later and level-4 streams from 0.7.0 decode fine with 0.8.0.
- Level-5 streams can't be decoded by older versions.
- The CLI writes level-5 files with container version 4. Older `misa` builds reject these with an error.
- CMake: there is a new option `MISA77_ASM` (default `ON`). With `OFF`, or on a compiler or architecture without kernels, the C++ decoders are used.

Share this resource


Discovered 2026-11-27 Source GitHub Archive 2026-11 →