]> git.ipfire.org Git - thirdparty/systemd.git/commit
compress: support streaming lz4 without full input mmap
authorLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 9 Mar 2021 14:57:44 +0000 (14:57 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 31 Mar 2021 08:29:36 +0000 (10:29 +0200)
commit834bab01f9e12773566cb59555ac9ac3ff86e628
tree8865859edaaf0c8a3fee60d7628efe252cd24a45
parentbcceabcfc2ea026d2245dda2073ef932e67e5a3a
compress: support streaming lz4 without full input mmap

The advantage of stream compression is keeping a low memory profile,
but the lz4 stream compressor usage mmaps the whole file in memory.

Change it to read bits by bits, like the other stream compression
helpers.
src/libsystemd/sd-journal/compress.c