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


Groups > comp.compression > #1594

Re: usage of zlib z_block flush option

From glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups comp.compression
Subject Re: usage of zlib z_block flush option
Date 2012-11-02 22:23 +0000
Organization Aioe.org NNTP Server
Message-ID <k71h4b$6e6$1@speranza.aioe.org> (permalink)
References <60687746-0257-4201-b544-5cd671cddc2f@googlegroups.com> <201209122015408725-madler@alumnicaltechedu>

Show all headers | View raw


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

Back to comp.compression | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

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

csiph-web