[Spice-devel] [PATCH] applying zlib compression over glz on WAN connection

Yonit Halperin yhalperi at redhat.com
Mon Jun 14 22:59:07 PDT 2010


On 06/15/2010 08:31 AM, Alon Levy wrote:
> [snip]
>
>> +                            sizeof(zlib_data->data.bufs_head->buf));
>> +
>> +    // the compressed buffer is bigger than the original data
>> +    if (zlib_size>= glz_size) {
>
> Does this actually happen in practice?
Yes, if the compression doesn't work well there is an overhead of 
headers size. This is the reason for the lower size threshold 
MIN_GLZ_SIZE_FOR_ZLIB.

Yonit.


More information about the Spice-devel mailing list