According to Christopher Murtagh:
> On Wed, 2004-04-21 at 23:21, Gilles Detillieux wrote:
> > > > 3) We may also need to determine if the repeated calls to config->Find()
> > > > at each URL are having an impact on performance as well.  E.g. what is
> > > > the performance cost of doing thousands of calls like this one?
> > > > 
> > > >      tmpList.Create(config->Find(&aUrl, "exclude_urls"), " \t");
> > > 
> > >  Easy thing to test. I'll give it a try later this week if I can,
> > > perhaps tomorrow, and report back.
> > 
> > Great.  I'll try to get my fix to Regex.cc in by the end of the week too,
> > so it would be great if you could give it a whirl.  It would probably
> > mean having to back out your own patch, though, or it wouldn't really
> > get tested.
> 
>  Here's what I did. I simply added a new variable called 'fooList' of
> type StringList. Then I inserted extra Create() method calls:
> 
> 
> //these lines are simply to test the CPU load of the Create() method
> fooList.Create(config->Find(&aUrl, "exclude_urls"), " \t");
> fooList.Destroy();
> 
> //these lines are simply to test the CPU load of the Create() method
> fooList.Destroy();
> fooList.Create(config->Find(&aUrl, "bad_querystr"), " \t");
> fooList.Destroy();
> 
>  Then I re-compiled and ran with my normal excludes URL list. It didn't
> seem to have much of an impact on performance. This means that the
> performance hit is definitely in the HtRegexList::setEscaped method.

Thanks, Chris.  That's good to know!  Maybe then we don't need to use
Lachlan's patch to the config parser to track whether server or URL
blocks were defined.  I'll try a quick fix to Retriever.cc, but I'll
also try to find if there are other uses of HtRegexList that may need
attention.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
ht://Dig Developer mailing list:
[EMAIL PROTECTED]
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to