Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Seeking through a large gzipped file

by vsespb (Hermit)
on May 14, 2013 at 15:35 UTC ( #1033509=note: print w/ replies, xml ) Need Help??


in reply to Seeking through a large gzipped file

Obviously with 'open "zcat $filename|"' you need our own seek mechanism (like caching previously decompressed data).

Perhaps when you implemented it will be as slow as Compress::Zlib.


Comment on Re: Seeking through a large gzipped file
Re^2: Seeking through a large gzipped file
by roysperlarnab (Initiate) on May 14, 2013 at 17:08 UTC
    Actually, if we use zcat, then we have to read through the lines and you know what? This is faster than using Compress::Zlib's gzseek!!!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033509]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-10-02 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (41 votes), past polls