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

Re: Re: Pulling by regex II

by mkent (Acolyte)
on Dec 14, 2002 at 22:51 UTC ( [id://219896]=note: print w/replies, xml ) Need Help??

in reply to Re: Pulling by regex II
in thread Pulling by regex II

Thanks, I totally missed the error problem, thanks for pointing it out. Would going through the log one line at a time be more efficient?

Replies are listed 'Best First'.
Re^3: Pulling by regex II
by tadman (Prior) on Dec 14, 2002 at 23:26 UTC
    If you have a 2GB log file, you can imagine that reading the whole thing into memory isn't going to be terribly efficient. Processing it one line at a time is virtually a must.

    Unless you need to read in the whole file because it's not terribly large and you will be refering to it several times, it is almost always better to pick through it one line at a time.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-18 20:51 GMT
Find Nodes?
    Voting Booth?

    No recent polls found