Re: [Spice-devel] [PATCH spice-server v2] image-encoders: Initialize Zlib lazily

2019-01-30 Thread Christophe Fergeau
On Wed, Jan 30, 2019 at 08:09:57AM -0500, Frediano Ziglio wrote: > > On Mon, Jan 28, 2019 at 07:33:54PM +, Frediano Ziglio wrote: > > > Zlib structure take up more than 1MB and it is rarely used nowadays > > > as it is not much effective. > > > Initialise it only when necessary saving some

Re: [Spice-devel] [PATCH spice-server v2] image-encoders: Initialize Zlib lazily

2019-01-30 Thread Frediano Ziglio
> On Mon, Jan 28, 2019 at 07:33:54PM +, Frediano Ziglio wrote: > > Zlib structure take up more than 1MB and it is rarely used nowadays > > as it is not much effective. > > Initialise it only when necessary saving some memory in the normal > > case. > > > > Signed-off-by: Frediano Ziglio > >

Re: [Spice-devel] [PATCH spice-server v2] image-encoders: Initialize Zlib lazily

2019-01-30 Thread Christophe Fergeau
On Mon, Jan 28, 2019 at 07:33:54PM +, Frediano Ziglio wrote: > Zlib structure take up more than 1MB and it is rarely used nowadays > as it is not much effective. > Initialise it only when necessary saving some memory in the normal > case. > > Signed-off-by: Frediano Ziglio > --- >

[Spice-devel] [PATCH spice-server v2] image-encoders: Initialize Zlib lazily

2019-01-28 Thread Frediano Ziglio
Zlib structure take up more than 1MB and it is rarely used nowadays as it is not much effective. Initialise it only when necessary saving some memory in the normal case. Signed-off-by: Frediano Ziglio --- server/image-encoders.c | 19 +++ 1 file changed, 11 insertions(+), 8