develooper Front page | perl.perl5.porters | Postings from May 2008

Re: bug or not? constants warn only once

Thread Previous | Thread Next
Aristotle Pagaltzis
May 5, 2008 23:36
Re: bug or not? constants warn only once
Message ID:
* David Nicol <> [2008-05-05 19:15]:
> On Mon, May 5, 2008 at 12:00 PM, Aristotle Pagaltzis <> wrote:
> >  the regex engine was almost twice as fast before the
> >  bookkeeping was added to detect exponential-time blowups of
> >  bad patterns.)
> how about an /f for fast regex modifier that will leave the
> bookkeeping out?

No need. We have pluggable engines now. If you have a pattern
that needs to be as fast as possible, plug in a faster engine for
that one pattern. The effort it takes to do this is effective
syntactic salt, too, whereas `/f` would get used the most by the
very people who are likeliest to need the protection it removes.
(I’ve seen more than a few bugs caused by people who thought `/o`
was the go-faster flag. Good thing it’s close to unnecessary
these days.)

Aristotle Pagaltzis // <>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About