I believe in Tcl 8.4 that if regexp sees a "simple" pattern (i.e. one
that string match could use), then it will use string match to process
it. I am not sure where exactly that takes place, so I am not sure if
that's what you are seeing or not. Maybe once Jeff gets back, he would
have some input.

    --brett

On Fri, 2003-03-28 at 10:29, Ayan George wrote:
> Guys,
>
> During my lunch break, I wrote a small program to
> compare the execution of Tcl_StringMatch() (what
> ns_register_filter uses to match URLs) and
> Tcl_RegExpExec() (what I propose
> ns_register_filter should have the option of
> using).
>
> It looks like the regular expression stuff is
> just as fast (or slow depending on how you look
> at it) as the Tcl_StringMatch() we currently
> use.
>
> Of course, I haven't tested it very thouroughly.
> If you are interested in the code I used, it is
> here:
>
>         http://www.ayan.net/software/TclReCmp/
>
> I'd like to take a stab at implementing the RE
> matching for the ns_register_* procedures if that
> is okay.
>
> -ayan
>
> On Fri, 28 Mar 2003, Nathan Folkman wrote:
>
> > Agree. If you want to take a stab at implementing, and can provide a
> > patch, we'll take a look and get it added to the core. Thanks in
> > advance.
> >
> > - Nathan
> >
> > On Friday, March 28, 2003, at 01:17 PM, Tim Moss wrote:
> >
> > > That sounds like a good idea. Espcially if you make the default
> > > behaviour
> > > whatever the current behaviour is.
> > >
> > > This will ensure backwards compatibility (with no changes to existing
> > > code).
> > >
> > > If you want the extra flexibility the regexp option gives you then you
> > > add
> > > it to your code and chaneg the expressions accordingly.
> >
> >
> > --
> > AOLserver - http://www.aolserver.com/
> > To Remove yourself from this list: http://www.aolserver.com/listserv.html
> > List information and options: http://listserv.aol.com/
> >
>
>
> --
> AOLserver - http://www.aolserver.com/
> To Remove yourself from this list: http://www.aolserver.com/listserv.html
> List information and options: http://listserv.aol.com/
--
Brett Schwarz <[EMAIL PROTECTED]>
Very Little


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/

Reply via email to