[Zlib-devel] Optimizations needed for gzgets() (Zlib version 1.2.3)

Scott_Riley at amat.com Scott_Riley at amat.com
Tue Jan 5 19:49:01 EST 2010


All,

I have a customer that needs an optimization for decompressing a file into
a buffer. Currently we are using the gzgets() function to read the
compressed file and place the uncompressed data into a buffer.

Scenario:
The customer is attempting to save storage on their network drives and have
the application read in the compressed files to work on the data instead of
reading in uncompressed data. Since this application reads in a high volume
number of files, we need to find a way to reduce the amount of time it
takes to process the compressed files. Currently when reading a compressed
file which is 202KB with gzgets(), the program takes about 750 ms to read
the file; however when reading the uncompressed version of the file which
is 3430KB using fgets(), it takes about 234 ms to read the file. We are
seeing the application taking about 3 times as long to process compressed
files vs uncompressed files.

Is there a way to optimize this library function, use some other function,
or use some other decompression library?

Currently we are using Zlib version 1.2.3:
	zdll.lib		7/18/2005 	  5:25 PM
	zlib1.dll		7/20/2005 	11:48 AM

Currently we are using the MS Visual C++ 6.0 Compiler.

Please respond at your earliest convenience.

Sincerely,
Scott Riley


The content of this message is Applied Materials Confidential.  If you are
not the intended recipient and have received this message in error, any use
or distribution is prohibited.  Please notify me immediately by reply
e-mail and delete this message from your computer system.  Thank you.





More information about the Zlib-devel mailing list