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

2019-01-28 Thread Christophe Fergeau
On Wed, Jan 23, 2019 at 07:46:16PM +, 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 > --- > server/ima

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

2019-01-23 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 | 18 ++ 1 file changed, 10 insertions(+), 8 deleti