On Thu, 12 Jul 2001, Gilles Detillieux wrote:

> kill it and compile the code for profiling.  My guess would be all the
> numbers don't work well with the hashing function used to build the
> in-memory word list, so it's degenerating to a linear search.  Profiling

I haven't had a chance to do the profiling, so I also don't know where the
code is choking. But I'd be surprised if it was the hashing:
    long  conv_key = strtol(key,  &test, 10);
    if (key && *key && !*test) // Conversion succeeded
      return conv_key;

The hash table uses the number itself as a key if it can, so the only
choke I could see here is if strtol is slow. But it certainly shouldn't be
resorting to linear search.

--
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/


_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to