in reply to Re: Re: Re: Re: Context search term highlighting - Perl is too slow
in thread Context search term highlighting - Perl is too slow

I still can't see the code example you referred to, but if you want an alternative to /o that can be used under mod_perl, take a look at one of merlyn's columns here.

Replies are listed 'Best First'.
Re: Speeding up interpolated regexes
by moseley (Acolyte) on Dec 23, 2001 at 23:04 UTC
    The URL was:
    http://hank.org/modules/PhraseTest.pm

    Thanks for merlyn's article reference. /o isn't an issue for my testing which is not under mod_perl, but I still need to revisit /o and qr// -- and more specifically using qr// in combination with /o.

    I really do agree that my nested loops are killing my speed. But I can't imagine how to avoid processing one word at a time.

    Someday if I have that thing I used to call free time I'll try a different approach from within Swish and in C.

    This would be an easier discussion over beer and pool, Perrin. When will you be out West again?