Anders Saaby wrote:
Extra note:
As one of my colleagues pointed out, prime numbers are usually better for
hashtable sizes, so I just tried ihashsize=64433 (prime number).
This resulted in ~20% less systime and the following kernel profiles looks
like prime numbers definetly _is_ a good idea:
To me that usually suggests that a better hash algorithm is called for,
using the prime number for a bucket count means you get into doing
more complex math to work out the bucket.
Steve (who has not looked at this code at all)
|