qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 4/4] block/qcow2: add zlib-fast compression algo


From: Peter Lieven
Subject: Re: [Qemu-devel] [PATCH 4/4] block/qcow2: add zlib-fast compression algorithm
Date: Tue, 27 Jun 2017 15:14:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Am 27.06.2017 um 14:53 schrieb Eric Blake:
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.


Okay, I think someone came up with the idea to have an optional
header per algorithm, but you are right one header with an optional
parameter payload will also do.

I will split the spec change to a separate patch in V2 to make it easier
to respin.

Thanks,
Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]