LZ4
Lossless compression at over 500 MB/s per core, with a decoder running at multiple GB/s.
- Follows branch
zephyr: eachwest updatewill 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
# From the workspace root
Invoke-WebRequest https://kartben.github.io/windrose/m/lz4.yaml `
-OutFile zephyr/submanifests/lz4.yaml
west update lz4
- name: lz4 url: https://github.com/zephyrproject-rtos/lz4 revision: zephyr path: modules/lib/lz4
Add to projects in your west.yml, then run 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