List Archive

Thread

Thread Index

Message

From: Thomas Klausner <tk%giga.or.at@localhost>
To: Boaz Stolk <bstolk%aweta.nl@localhost>
Subject: Re: compression and speed
Date: Tue, 29 Mar 2016 17:00:17 +0200

On Tue, Mar 29, 2016 at 02:00:35PM +0000, Boaz Stolk wrote:
> What is the reason for libzip's poor performance when compressing/closing an 
> archive?

Because by default it compresses with max compression.
zip_source_deflate.c:   if ((ret=deflateInit2(&ctx->zstr, Z_BEST_COMPRESSION, 
Z_DEFLATED, -MAX_WBITS, ctx->mem_level, Z_DEFAULT_STRATEGY)) != Z_OK) {

Try comparing it to 'zip -9'.
 Thomas

Made by MHonArc.