Richard Biener <richard.guent...@gmail.com> writes:
>>
>> One of the reasons I did it explicitely is that the murmur3 reference code 
>> is C++
>> (well really only the mixed code/declarations I think) and libiberty seems 
>> to be
>> C only. I suppose can port it to C and put it into libiberty though, and make
>> hashtab.c always use it.
>>
>> My understanding is that murmur is generally stronger than evahash.
>
> It would be nice to back this with some numbers on the collision rate
> for GCC hashtables,

I tested it for the preprocessor symbol hash at some point, but had some
second thoughts because it could potentially be called with unaligned 
arguments (ok on x86 with murmur, but may not be elsewhere). Don't 
remember the exact numbers, but I think it was a bit better.

For WPA types at least murmur3 got me from 70% collisions with the
eva ptrhash to 64%. The original was much worse.

Good point about the new hash table. Right now nothing using it is
on my performance radar though.

-Andi

-- 
a...@linux.intel.com -- Speaking for myself only

Reply via email to