Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Why should I use perl 5.10?

by redhotpenguin (Deacon)
on Nov 30, 2007 at 20:24 UTC ( [id://654199]=note: print w/replies, xml ) Need Help??


in reply to Why should I use perl 5.10?

The regex engine uses trie data structures when dealing with alternations (foo|biz|bar). So if you have massive regular expressions that make heavy use of alternation (like I do), you should see a performance boost.

A trie is a very cool data structure, quoting wikipedia "The worst-case lookup speed in an imperfect hash table is O(N) time, but far more typically is O(1), with O(m) time spent evaluating the hash." I can't do the explanation justice so go read it for yourself, it is a worthwhile learning experience.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-20 05:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found