Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Unrolling the loop technique

by Anonymous Monk
on Jun 20, 2001 at 00:15 UTC ( #89797=note: print w/replies, xml ) Need Help??

in reply to Unrolling the loop technique

Thank you for your responses. They're very helpful, but I don't think I was clear enough in my initial post. My apologies. What I really would like is an explanations of the "mechanics" of the PERL regex engine in the "unrolling the loop" technique. Why is it more efficient (i.e., no or least amount of backtracking, no infinite or nearly infinite loops, etc.) in the problem situations that some of you have mentioned or in the situation that led Jeffery Friedl to invent it in the first place. Also, this would help me and possibly others understand when its less efficient as respondent Tye has indicated.

Basically, I'm after an understanding of the ghostly depths of what going on at the engine level between the surface dazzle of completing expressions. The fundamentals.

Thanks again.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2021-06-22 22:37 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (110 votes). Check out past polls.