Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: 5.10.0 regex slowdown

by demerphq (Chancellor)
on Feb 22, 2008 at 00:56 UTC ( #669441=note: print w/ replies, xml ) Need Help??


in reply to Re^3: 5.10.0 regex slowdown
in thread 5.10.0 regex slowdown

See those BRANCHJ EXACT LONGJMP tuples? They are confusing the optimiser so that it doesnt recognize this as a trie'able sequence. Ill have to think about what i can do about that.

I doubt ill have time soon tho.

Offline ysth mentioned a cool suggestion:

[2008-02-22 01:45] <ysth1> I ended up dividing my list into three diff +erent regexes and used them like (?:(??{$rxa})|(??{$rxb})|(??{$rxc}))

Which isnt ideal but better than no trie at all. Sorry about this. :-(

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


Comment on Re^4: 5.10.0 regex slowdown
Download Code
Re^5: 5.10.0 regex slowdown
by BrowserUk (Pope) on Feb 22, 2008 at 01:13 UTC

      Ah, yes. For sure. I didnt need that much anyway. :-) Im pretty sure youll find that most of that is going to be *match* debug output, which is not what i wanted, i just wanted a snippet of the compiled pattern dump. Sorry about that.

      ---
      $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://669441]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2015-07-05 21:31 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 (68 votes), past polls