Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: An imperfect pattern matcher writer

by pjf (Curate)
on Oct 02, 2001 at 17:58 UTC ( [id://116121]=note: print w/replies, xml ) Need Help??


in reply to An imperfect pattern matcher writer

Nice. I can think of a quick'n'easy speed improvement as well. Given how many times you're (potentially) matching on $seq, a study($seq) before the matches is almost certainly going to hurry things up.

Study examines a string in preparation of doing many pattern matches, and this seems like just the sort of thing it was built for.

Cheers,
Paul

  • Comment on Re: An imperfect pattern matcher writer

Replies are listed 'Best First'.
Re: Re: An imperfect pattern matcher writer
by scain (Curate) on Oct 02, 2001 at 18:07 UTC
    pjf,

    Thanks; I was unaware of study until now. I will reimplement this with study and do some benchmarking.

    Scott

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-24 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found