in reply to gzseek for perl filehandles

You'd be well to consider the performance impact of random seeks within a compressed file in the light of this from the zlib docs:

If file is open for reading, the implementation may still need to uncompress all of the data up to the new offset. As a result, gzseek() may be extremely slow in some circumstances.

Just how large is your file of words?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: gzseek for perl filehandles
by Anonymous Monk on Dec 23, 2010 at 15:43 UTC
    That's what,
          --rsyncable   Make rsync-friendly archive
    
    should solve. Although I am open to using a different compressor other than gzip if it has random access. I think .zip must support this for example, but I don't see a compressed filehandle library with random seek support in cpan.
      File size is 1GB compressed: It's not words but phrases that I want to match against.

      Googling site:zlib.net rsyncable turns up 0 hits?