[elbe-devel] [PATCH 0/2] Add zstd in-place packer and tar archiver

Daniel Braunwarth daniel at braunwarth.dev
Fri Jan 7 10:05:30 CET 2022


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 at braunwarth.dev>

Daniel Braunwarth (2):
  Use tar GNU-style options and auto compression mode
  Add zstd in-place packer and tar archiver

 debian/control      |  1 +
 elbepack/packers.py | 11 +++++++----
 schema/dbsfed.xsd   |  4 +++-
 3 files changed, 11 insertions(+), 5 deletions(-)

--
2.34.1


More information about the elbe-devel mailing list