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

Re: unicode regex performance

Thread Previous | Thread Next
From:
Gerard Goossen
Date:
February 10, 2007 06:40
Subject:
Re: unicode regex performance
Message ID:
20070210144321.GG1868@ostwald
On Sat, Feb 10, 2007 at 03:24:47PM +0100, Juerd Waalboer wrote:
> Gerard Goossen skribis 2007-02-10 15:25 (+0100):
> > NONE*:  1.79s
> > UTF-8:  1.86s	
> > UTF-16: 2.10s
> > UTF-32: 2.90s
> 
> Did you use a word oriented regex engine for the latter?

The benchmark was attached at the bottom of the mail.
It does a simple for-loop looking for the byte/word/dword. And yes
there are much better ways to search through memory, but it demonstrates
the impact of using memory.


Gerard Goossen


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