Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/netkey



> Generally speaking, the consensus I've seen is that the expense of a
> division/modulus operation is higher than the savings from the
> improved hashing that a prime gives you, and that you are better off
> using algorithms like the ones we use elsewhere in the kernel that use
> power of two hash tables rather than prime sized hash tables and
> simply bitmask.

        ok, thanks for the tip.

itojun



Home | Main Index | Thread Index | Old Index