Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 wandering the Monastery: (4)
As of 2025-12-11 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (92 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.