in reply to Re^2: How Index function works??
in thread How Index function works??

LanX How big was your file?? I used file sized of 300 MB where for a pattern it took less than second but with regex it took over 5mins and I had to stop the script... I am using perl v5.14

Replies are listed 'Best First'.
Re^4: How Index function works??
by LanX (Saint) on Oct 24, 2011 at 09:22 UTC
    52 MB and as you can see from my test I'm cosntructing a case where Boyer-Moore must be slower than brute force.

    Cheers Rolf