Linutronix / elbe

Embedded Linux Build Environment
https://elbe-rfs.org
GNU General Public License v3.0
165 stars 59 forks source link

Add zstd in-place packer and tar archiver #321

Closed d4nuu8 closed 2 years ago

d4nuu8 commented 2 years ago

This patch adds a zstd in-place packer and tar archiver.

The following little benchmarks compares gzip and zstd. The tests have been run with an example image of 1,9G size.

Compression with gzip which results in a 379M big file:

gzip -f sda2.img  38,78s user 0,71s system 99% cpu 39,529 total

Decompression with gzip:

gunzip sda2.img.gz  8,70s user 0,81s system 97% cpu 9,728 total

Compression with zstd which results in a 353M big file:

zstd -T0 sda2.img  6,66s user 0,65s system 152% cpu 4,791 total

Decompression with zstd:

unzstd sda2.img.zst  1,29s user 0,61s system 48% cpu 3,968 total

Signed-off-by: Daniel Braunwarth daniel@braunwarth.dev