in reply to is index faster than regexp for fixed text token?
Rate index regexp index 299/s -- -5% regexp 316/s 6% -- Rate regexp index regexp 294/s -- -12% index 332/s 13% -- Rate regexp index regexp 303/s -- -3% index 313/s 3% --
That's what I'd expect, since index and regex matches use the same algorithm (Boyer-Moore) to find constant strings
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: is index faster than regexp for fixed text token?
by sflitman (Hermit) on Jul 06, 2009 at 05:06 UTC | |
by Marshall (Canon) on Jul 06, 2009 at 07:24 UTC | |
by ikegami (Patriarch) on Jul 06, 2009 at 16:43 UTC | |
by Marshall (Canon) on Jul 06, 2009 at 17:12 UTC | |
|
Re^2: is index faster than regexp for fixed text token?
by sflitman (Hermit) on Jul 06, 2009 at 05:07 UTC | |
by ikegami (Patriarch) on Jul 06, 2009 at 16:36 UTC |