Torsten Neuer (firstname.lastname@example.org)
Thu, 29 Apr 1999 08:10:39 +0200
According to Geoff Hutchison:
>I just cleaned out the bug database and discovered something nice. Peter D.
>Gray <email@example.com> sent us a "hack" for changing the htdig URL
>exclusion and limit attributes into full regexp.
>The patches are fairly small--he introduces a minimal Regex class and then
>changed the calls to StringMatch with calls to his Regex class. I'll send
>the patches if anyone wants.
>So here's a question... Do we want this full regex behavior? Do we want to
>replace StringMatch with a regex class? The bonus would be full regex
>support in a number of areas. People have particularly complained about the
>restrict/exclude behavior in htdig and htsearch.
Having regex in most areas would be nice and add a lot to the usablility
of ht://Dig as a search tool. Doing regex only for a limited range would
not be worth the effort.
>The negative is that we have to field problems with incorrect regex
>(ew...), and we will probably have to work on the Regex class some. We also
>have no idea if it would be faster/slower or use more/less memory than
I think that in case of a byte compiled regex, memory usage should increase
only little and speed should be near equivalent to StringMatch for trivial
>My feeling is we should play with it and see how it works performance-wise.
>I don't think the changes would be significant to what's contributed.
If the performance drops significantly for trivial expressions it might
even be worth thinking of optional configuration attributes that can be
used to substitute the normal StringMatch stuff, i.e. if a regex is re-
quested, the regex code will be used otherwise ht://Dig stays with old
just my 2cc,
-- InWise - Wirtschaftlich-Wissenschaftlicher Internet Service GmbH Waldhofstraße 14 Tel: +49-4101-403605 D-25474 Ellerbek Fax: +49-4101-403606 E-Mail: firstname.lastname@example.org Internet: http://www.inwise.de
------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to email@example.com containing the single word "unsubscribe" in the SUBJECT of the message.
This archive was generated by hypermail 2.0b3 on Wed Apr 28 1999 - 23:31:28 PDT