Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Parsing Large Text Files For Performance

by hsinclai (Deacon)
on Jan 31, 2011 at 03:33 UTC ( [id://885194]=note: print w/replies, xml ) Need Help??


in reply to Parsing Large Text Files For Performance

As an option to reading line by line from a file handle, the technique in Re: Muy Large File might be adapted.. the sysread, sysseek, syswrite are builtins. IIRC the original goal of that OP was in-place replacement of strings, but you might be able to locate the IPs and then the start and end of lines (packets) by this method... I saved this one because it's so fast for reading and ripping through files off disk.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-19 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found