Windrose

LZ4

zephyrproject-rtos · 2 GitHub stars

Lossless compression at over 500 MB/s per core, with a decoder running at multiple GB/s.

LZ4

zephyrproject-rtos · 2 GitHub stars

Lossless compression at over 500 MB/s per core, with a decoder running at multiple GB/s.

  • Follows branch zephyr: each west update will get its latest commits. To stay on one version, it is recommended to use a release tag.

Install

# From the workspace root
curl -fsSL https://kartben.github.io/windrose/m/lz4.yaml \
     -o zephyr/submanifests/lz4.yaml
west update lz4

Details

Revision
zephyr
License
BSD-2-Clause
Maintainers
@zephyrproject-rtos
Last commit
7 mo ago

About

LZ4 is a lossless compression algorithm, providing compression speed greater than 500 MB/s per core, scalable with multi-core CPUs. It features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems.

Speed can be tuned dynamically by selecting an "acceleration" factor, which trades compression ratio for faster speed. On the other end, a high compression derivative, LZ4_HC, is also provided, trading CPU time for improved compression ratio. All versions feature the same decompression speed.

LZ4 is also compatible with dictionary compression, both at API and CLI levels. It can ingest any input file as a dictionary, though only the final 64KB are used. This capability can be combined