Re: gzread and NFS issues



I can only guess where the 512 is coming from. The gz* routines use
an I/O block size of 4096 bytes. Perhaps the underlying stdio fread()
routine is using 512-byte buffers.

You can avoid the stdio routines by using the lower level open() /
read() / close() routines with zlib's inflate() or inflateBack()
routines.. You can look at the gun.c code in the examples directory
of the zlib distribution for the fastest implementation of gzip file
decompression using zlib.

.