http://www.perlmonks.org?node_id=999538


in reply to Re: Random accessing a gzip file
in thread Random accessing a gzip file

Note that the implementation of seek in IO::Uncompress::Gunzip does not provide true random access to a compressed file. It works by uncompressing data from the current offset in the file/buffer until it reaches the ucompressed offset specified in the parameters to seek. For very small files this may be acceptable behaviour. For large files it may cause an unacceptable delay.