in reply to Re: Performance optimization question
in thread Performance optimization question
Not always:
$s = 'x'x3000 . 'reg exp' . 'x'x3000; cmpthese -1, { REGEX => q[ $x = $s =~ /reg exp/;], INDEX => q[ $x = index $s, 'reg exp';] };; Rate INDEX REGEX INDEX 40470/s -- -74% REGEX 156392/s 286% --
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Performance optimization question
by moritz (Cardinal) on Apr 03, 2008 at 07:55 UTC | |
by BrowserUk (Patriarch) on Apr 03, 2008 at 08:09 UTC | |
|
Re^3: Performance optimization question
by ikegami (Patriarch) on Apr 03, 2008 at 07:16 UTC | |
by BrowserUk (Patriarch) on Apr 03, 2008 at 07:43 UTC | |
|
Re^3: Performance optimization question
by parv (Parson) on Apr 03, 2008 at 08:03 UTC | |
by moritz (Cardinal) on Apr 03, 2008 at 08:18 UTC | |
by vit (Friar) on Apr 03, 2008 at 16:50 UTC |