Re: Speed comparison of regex versus index, lc, and / /i
- From: "A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 31 May 2008 02:08:19 GMT
"A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx> wrote in
news:Xns9AAEDDF8A85B8asu1cornelledu@xxxxxxxxx:
....
while ($text =~ /\Q$ss\E/g) {
Changing this to
while ( $text =~ /\Q$ss\E/og ) {
makes regex_find faster by about 1%.
Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(remove .invalid and reverse each component for email address)
comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/
.
- Follow-Ups:
- Re: Speed comparison of regex versus index, lc, and / /i
- From: Ben Morrow
- Re: Speed comparison of regex versus index, lc, and / /i
- References:
- Speed comparison of regex versus index, lc, and / /i
- From: Ben Bullock
- Re: Speed comparison of regex versus index, lc, and / /i
- From: xhoster
- Re: Speed comparison of regex versus index, lc, and / /i
- From: Ben Bullock
- Re: Speed comparison of regex versus index, lc, and / /i
- From: A. Sinan Unur
- Speed comparison of regex versus index, lc, and / /i
- Prev by Date: Re: Speed comparison of regex versus index, lc, and / /i
- Next by Date: Re: Need help with a simple (I think) Perl script
- Previous by thread: Re: Speed comparison of regex versus index, lc, and / /i
- Next by thread: Re: Speed comparison of regex versus index, lc, and / /i
- Index(es):