develooper Front page | perl.perl5.porters | Postings from February 2007

Re: unicode regex performance (was Re: Future Perl development)

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
February 8, 2007 04:22
Subject:
Re: unicode regex performance (was Re: Future Perl development)
Message ID:
20070208122201.GE5748@plum.flirble.org
On Thu, Feb 08, 2007 at 01:19:04PM +0100, demerphq wrote:
> On 2/8/07, Juerd Waalboer <juerd@convolution.nl> wrote:

> >By the way - I retract that a pragma would be good. I should have
> >proposed a regex flag. Unfortunately, /i (ignorant mode) is taken, so
> >perhaps /d (dumb) or /n (naive).
> 
> Eeek. New modifiers are trouble.
> 
> :-)
> 
> Id prefer to see this happen automatically when the pattern is utf8
> and exact and doesnt use charclasses or anything that needs true
> character semantics.

Otherwise it will only lead to users putting flags on for speed, because the
test data still passes, then new data being presented that doesn't pass,
then it being seen as a bug in Perl.

Nicholas Clark

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