I've posted a patch to String.cc with some simple changes with make a huge
difference in efficiency.

http://ai.rightnow.com/htdig/String.cc.patch

Basically it involves trivial changes to eliminate redundant calls to
s.length() in the same function.

I used gprof to find this and the change makes a massive difference in the
number of total calls to String.length() during a large spidering run.

Please take a look and tell me if you object to any change.  You'll need
to download the patch and apply it to your htlib\String.cc

I'll commit it next week if no one sees a problem.

Thanks.

Neal Richter
Knowledgebase Developer
RightNow Technologies, Inc.
Customer Service for Every Web Site
Office: 406-522-1485




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to