[Zlib-devel] New gzio called gzlib
Gilles Vollant
info at winimage.com
Sat Jan 1 16:01:10 EST 2005
Pehaps we can say gzlib is like minizip : a way to maniluplate .gz / .zip
using zlib
-----Original Message-----
From: Mark Adler [mailto:madler at alumni.caltech.edu]
Sent: Saturday, January 01, 2005 9:51 PM
To: zlib-devel at zlib.net
Cc: 'Mikhail Teterin'; 'Nadav Har'El'
Subject: Re: [Zlib-devel] New gzio called gzlib
On Jan 1, 2005, at 9:12 AM, Paul Marquess wrote:
> Is it your intention to remove the existing gz* functions from zlib
> and put them into gzlib?
Yes, though gzlib would still be distributed with zlib. There would be
separate zlib.h and gzlib.h interface headers. I'm not sure yet if zlib.h
should automatically include gzlib.h, or whether the default build should
combine the libraries.
The motivations for separating them are: a) the gz* functions are really an
application of the zlib functions, not part of them, b) gzlib and zlib both
may benefit from independent development and releases, and c) the separation
would facilitate a libraryless compilation of zlib, which I have had several
requests for. (zlib 1.2.2.2 already took one step in that direction by
removing structure assignments that result in hidden memcpy() calls.)
The motivation for writing a new gzlib was mainly performance -- gzio was
not well buffered and could be rather slow, especially when using gzgetc().
gzlib has complete buffering and uses the lower-level i/o functions to avoid
an extraneous layer of stdio buffering.
mark
_______________________________________________
Zlib-devel mailing list
Zlib-devel at zlib.net
http://madler.net/mailman/listinfo/zlib-devel_madler.net
More information about the Zlib-devel
mailing list