Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Optimise file line by line parsing, substitute SPLIT

by vsespb (Chaplain)
on Jun 03, 2013 at 12:44 UTC ( #1036739=note: print w/replies, xml ) Need Help??


in reply to Optimise file line by line parsing, substitute SPLIT

I had same problem. And I did not find any solution. One thing I can tell, if you later validate your records with regexps, it might be better replace split with regexp and combine with validation, because split is not much faster than regexps.

(example of my format/code)

Also, maybe unpack() sometimes faster than split?

  • Comment on Re: Optimise file line by line parsing, substitute SPLIT

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036739]
help
Chatterbox?
[atcroft]: PriNet: Those code bits worked for me, with test hashes, but I didn't test it with more than a few simple test cases. *shrug* Had hoped it would help, at least.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2017-06-28 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (619 votes). Check out past polls.