Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perl regexp matching is slow??

by imp (Priest)
on Jan 30, 2007 at 04:30 UTC ( [id://597270]=note: print w/replies, xml ) Need Help??


in reply to Perl regexp matching is slow??

The speed of the perl regex engine isn't all that important unless it is too slow for a particular problem you are trying to solve. If the problem is so time sensitive that the perl regex engine is your biggest bottleneck (you did benchmark, right?) then it might be time to rethink your solution. Perhaps moving away from regex, or perhaps using a language built for speed

Where perl shines really is the ease with which you can use regular expressions, and the useful (if monstrous) extensions such as (?{{}}). Using regular expressions in php or c with pcre makes you really appreciate perl. Older java versions were a bit annoying as well, but they have improved greatly in recent years.

Use whatever happens to be the right tool for the job. It won't always be perl, but you can rejoice when it is.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (9)
As of 2024-04-23 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found