Re: gzread and NFS issues
- From: Mark Adler <madler@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 16 Apr 2008 12:46:13 -0700 (PDT)
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.
.
- Follow-Ups:
- Re: gzread and NFS issues
- From: km_jr_usenet
- Re: gzread and NFS issues
- References:
- gzread and NFS issues
- From: km_jr_usenet
- Re: gzread and NFS issues
- From: km_jr_usenet
- gzread and NFS issues
- Prev by Date: Re: gzread and NFS issues
- Next by Date: Re: gzread and NFS issues
- Previous by thread: Re: gzread and NFS issues
- Next by thread: Re: gzread and NFS issues
- Index(es):