[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 4/4] block/qcow2: add zlib-fast compression algo
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [PATCH 4/4] block/qcow2: add zlib-fast compression algorithm |
Date: |
Tue, 27 Jun 2017 07:53:02 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 |
On 06/27/2017 07:34 AM, Peter Lieven wrote:
> this adds support for optimized zlib settings which almost
Start sentences with a capital.
> tripples the compression speed while maintaining about
s/tripples/triples/
> the same compressed size.
>
> Signed-off-by: Peter Lieven <address@hidden>
> ---
> block/qcow2-cluster.c | 3 ++-
> block/qcow2.c | 11 +++++++++--
> block/qcow2.h | 1 +
> qemu-img.texi | 1 +
> 4 files changed, 13 insertions(+), 3 deletions(-)
>
> +++ b/block/qcow2.h
> @@ -173,6 +173,7 @@ typedef struct Qcow2UnknownHeaderExtension {
> enum {
> QCOW2_COMPRESSION_ZLIB = 0xC0318301,
> QCOW2_COMPRESSION_LZO = 0xC0318302,
> + QCOW2_COMPRESSION_ZLIB_FAST = 0xC0318303,
Back to my comments on 1/4 - we MUST first get the qcow2 specification
right, rather than adding undocumented headers in the code. And I still
think you only need one variable-length header extension for covering
all possible algorithms, rather than one header per algorithm. Let's
get the spec right first, before worrying about the code implementing
the spec.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature