Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Optimise file line by line parsing, substitute SPLIT

by hdb (Monsignor)
on Jun 03, 2013 at 14:17 UTC ( [id://1036767]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Optimise file line by line parsing, substitute SPLIT
in thread Optimise file line by line parsing, substitute SPLIT

In this kind of application, try to filter first e.g. next unless /^abcd/ and only split if you need the fields separated.

Replies are listed 'Best First'.
Re^4: Optimise file line by line parsing, substitute SPLIT
by vsespb (Chaplain) on Jun 03, 2013 at 14:34 UTC
    Yes, sure, if I filter by first field. Otherwise split+regexp will be slower than just regexp or than split+comparsion.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2025-07-08 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.