NewsCrawler.org

misa77: a compressor that decompresses up to 3x faster than zstd

A compression library that ruthlessly prioritises decode throughput. misa77 offers much faster decompression than LZ4 and zstd, at better ratios. - welcome-to-the-sunny-side/misa77
Image: github.com

misa77 is an LZ-based compressor for data that is written once and read many times. It aims for very high single-threaded, in-memory decompression speed, good compression ratios relative to decode speed, and constant memory use during compression regardless of input size. Slow compression is the trade-off it accepts. Decompression is designed to stay safe on corrupt or malicious input: the decompressor exits gracefully and does not access out-of-bounds memory.

In the author's benchmarks on an Intel i7-14650HX, run single-threaded with lzbench, misa77 compresses somewhat slower than its competitors, gets similar ratios, and decodes much faster. Levels 3-6 decode faster than LZ4, and level 6 has smaller ratios but decodes about 2x faster. Levels 11-13 reach ratios similar to zstd's levels 11 to 22 and decode about 2.5 to 3 times faster. On a corpus of about 263 MB of game assets, levels 12 and 13 get better ratios than zstd.

Levels 1-6 use simple LZ compression, while levels 11-13 add entropy coding and delta coding. The author recommends levels 3, 11, 12 or 13, depending on requirements. The library needs a C++20 compiler, CMake 3.20 or newer, and a little-endian 64-bit system, and the CLI needs POSIX.

Repository misa77 github.com

LZ-based compressor for write-once, read-many data, tuned for very fast single-threaded decompression with safe handling of corrupt input.

Stars: 200Forks: 10License: MITUpdated:

Read the original github.comDiscussion

Discussion

Commenters compare misa77 with zstd, brotli, PCodec, zxc and OpenZL. One commenter says misa77 compresses much more slowly than zstd -2 (about 10 MB/s against 350 MB/s on lzbench on AMD), another asks how large the compression speed penalty is, and a third doubts that write-once, read-many is a real niche.

Sources

  • GitHub

    Show HN: misa77 – Up to 3x faster decompression than zstd, with better ratios

    84 comments

  • KRGeekNews KO

    Show HN: misa77 - zstd보다 최대 3배 빠른 압축 해제와 더 높은 압축률

    1 point1 comment

Terms

  1. entropy coding — A group of methods that store data using fewer bits for the values that occur most often, so the output is smaller.
  2. delta coding — A method that stores the difference between each value and the previous one instead of storing every value in full.
  3. lzbench — A benchmark tool that measures the speed and compression ratio of many compression codecs.

Published: First seen: Читать по-русски

Open as a page