3 ms·
LZ4 has branchless decompression, and lower cache footprint, thus it can work on low end, and non-desktop CPUs equally well. zstd, brotly, snappy were seemingl
by baybal2 6y ago
LZ4 has branchless decompression, and lower cache footprint, thus it can work on low end, and non-desktop CPUs equally well.
zstd, brotly, snappy were seemingly all made with high end x86 capabilities in mind.
- jorangreef 6y agoI also appreciate LZ4's simplicity and tiny code footprint. zstd is brilliant as well, but in terms of code base it's a whole other beast.
- makapuf 6y agoYes decompression on baremetal cortex m4 is a mere hundreds of bytes, you can decompress it from flash directly to its output buffer.
- Teknoman117 6y agoI've used it in bootloaders that have slow transfer mechanisms (uart, i2c) to get whatever speedup I can for a few hundred bytes of binary.
- wolf550e 6y agoGoogle snappy is same class as lzo and lz4, not same class as brotli and zstd.
- ignoramous 6y agoAlso see Daniel Reiter Horn's DivANS built at Dropbox: https://dropbox.tech/infrastructure/building-better-compression-together-with-divans https://dropbox.tech/infrastructure/building-better-compress...