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

Re: bug or not? constants warn only once

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
May 5, 2008 23:36
Subject:
Re: bug or not? constants warn only once
Message ID:
20080506063554.GN4173@klangraum.plasmasturm.org
* David Nicol <davidnicol@gmail.com> [2008-05-05 19:15]:
> On Mon, May 5, 2008 at 12:00 PM, Aristotle Pagaltzis <pagaltzis@gmx.de> 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.)

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About