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

Re^8: Suggestion for regular expression speed improvement.

by bala.linux (Novice)
on Jun 15, 2009 at 18:11 UTC ( #771744=note: print w/ replies, xml ) Need Help??


in reply to Re^7: Suggestion for regular expression speed improvement.
in thread Suggestion for regular expression speed improvement.

Yes. My initial idea was to keep CSV, RE parsing separate but I thought may be If could get the same performance from RE, then need not to have a CSV parser. But now I understand that is not possible to think of. So, need to switch back to my old approach where I do two parsing separately. So, from the user interface user will have simple/advanced parsing modes. Thanks for your suggestion.


Comment on Re^8: Suggestion for regular expression speed improvement.
Replies are listed 'Best First'.
Re^9: Suggestion for regular expression speed improvement.
by demerphq (Chancellor) on Jun 15, 2009 at 19:38 UTC

    Dont forget unpack. For fixed width fields its pretty much the fastest choice you have. And many logfiles are fixed width.

    ---
    $world=~s/war/peace/g

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2015-07-28 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls