Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Multiple patterns match in a big file and track the counts of each pattern matched

by siberia-man (Friar)
on Dec 04, 2017 at 19:59 UTC ( [id://1204890]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Multiple patterns match in a big file and track the counts of each pattern matched
in thread Multiple patterns match in a big file and track the counts of each pattern matched

Definitely, 1GB file is quite huge! Do you really think that it is possible to improve the performance in this case? Any way there are two another hints given by other monks: 1) use index or 2) combine few small regexps into the bigger one. Also you can remove the part creating the regexps out of the loop: create regexps before looping and use "compiled" regexps within the loop.
  • Comment on Re^3: Multiple patterns match in a big file and track the counts of each pattern matched
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-26 03:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found