Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compression > #1504 > unrolled thread

usage of zlib z_block flush option

Started byjefflad <jladouceur@gmail.com>
First post2012-09-05 08:48 -0700
Last post2012-11-02 22:23 +0000
Articles 5 — 4 participants

Back to article view | Back to comp.compression


Contents

  usage of zlib z_block flush option jefflad <jladouceur@gmail.com> - 2012-09-05 08:48 -0700
    Re: usage of zlib z_block flush option Mark Adler <madler@alumni.caltech.edu> - 2012-09-12 20:15 -0700
      Re: usage of zlib z_block flush option jefflad <jladouceur@gmail.com> - 2012-11-02 14:13 -0700
        Re: usage of zlib z_block flush option Mark Adler <google@madler.net> - 2013-02-08 20:36 -0800
      Re: usage of zlib z_block flush option glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-11-02 22:23 +0000

#1504 — usage of zlib z_block flush option

Fromjefflad <jladouceur@gmail.com>
Date2012-09-05 08:48 -0700
Subjectusage of zlib z_block flush option
Message-ID<60687746-0257-4201-b544-5cd671cddc2f@googlegroups.com>
I'm attempting to locate what applications uses the Z_BLOCK zlib flush option but have only found one obscure user.

Just wondering if anyone knows if this flush option is commonly used ?

thanks

[toc] | [next] | [standalone]


#1514

FromMark Adler <madler@alumni.caltech.edu>
Date2012-09-12 20:15 -0700
Message-ID<201209122015408725-madler@alumnicaltechedu>
In reply to#1504
On 2012-09-05 08:48:58 -0700, jefflad said:
> I'm attempting to locate what applications uses the Z_BLOCK zlib flush 
> option but have only found one obscure user.
> 
> Just wondering if anyone knows if this flush option is commonly used ?

How would anyone know the answer to that?

You can see examples of the cases where Z_BLOCK is useful by looking in 
the zlib source code distribution at examples/gzappend.c, 
examples/gzjoin.c, and examples/zran.c.

Mark

[toc] | [prev] | [next] | [standalone]


#1593

Fromjefflad <jladouceur@gmail.com>
Date2012-11-02 14:13 -0700
Message-ID<cb325695-fdce-4e05-84d7-f6c23cb61fd9@googlegroups.com>
In reply to#1514
On Wednesday, September 12, 2012 11:15:43 PM UTC-4, Mark Adler wrote:
> On 2012-09-05 08:48:58 -0700, jefflad said:
> 
> > I'm attempting to locate what applications uses the Z_BLOCK zlib flush 
> 
> > option but have only found one obscure user.
> 
> > 
> 
> > Just wondering if anyone knows if this flush option is commonly used ?
> 
> 
> 
> How would anyone know the answer to that?

Because they used it, or came across it.

Perhaps my question wasn't clear. I was trying to find use-cases where this is used.

I'm just trying to understand why this would be used.

For example, Apache uses it here because...

> 
> 
> 
> You can see examples of the cases where Z_BLOCK is useful by looking in 
> 
> the zlib source code distribution at examples/gzappend.c, 
> 
> examples/gzjoin.c, and examples/zran.c.

I wasn't looking for example usage as they do not represent real world use-cases.

> 
> 
> 
> Mark

[toc] | [prev] | [next] | [standalone]


#1739

FromMark Adler <google@madler.net>
Date2013-02-08 20:36 -0800
Message-ID<61c29433-893c-49c6-bff7-14c5ec1ffe12@googlegroups.com>
In reply to#1593
On Friday, November 2, 2012 2:13:20 PM UTC-7, jefflad wrote:
> I wasn't looking for example usage as they do not represent real world use-cases.

Fine.  Then take a look at pigz.  http://zlib.net/pigz/

Mark

[toc] | [prev] | [next] | [standalone]


#1594

Fromglen herrmannsfeldt <gah@ugcs.caltech.edu>
Date2012-11-02 22:23 +0000
Message-ID<k71h4b$6e6$1@speranza.aioe.org>
In reply to#1514
Mark Adler <madler@alumni.caltech.edu> wrote:
> On 2012-09-05 08:48:58 -0700, jefflad said:
>> I'm attempting to locate what applications uses the Z_BLOCK zlib flush 
>> option but have only found one obscure user.
 
>> Just wondering if anyone knows if this flush option is commonly used ?
 
> How would anyone know the answer to that?
 
> You can see examples of the cases where Z_BLOCK is useful by looking in 
> the zlib source code distribution at examples/gzappend.c, 
> examples/gzjoin.c, and examples/zran.c.

I am not sure where it is used, but I believe it can
be used to allow sort-of-direct access. 

The usual LZW algorithms flush the tables when they get full,
but compressors can flush at any time. If you add an index,
you can start decompression at specific points.

Also, if the compressor knows that the the source is changing
such that previous data won't be optimal for future compression,
it can flush the tables at that point.

-- glen

[toc] | [prev] | [standalone]


Back to top | Article view | comp.compression


csiph-web