[infinispan-dev] Hash functions
Manik Surtani
manik at jboss.org
Wed Mar 31 07:28:29 EDT 2010
On 31 Mar 2010, at 05:07, Jason T. Greene wrote:
> Jason T. Greene wrote:
>> Manik Surtani wrote:
>>> On 29 Mar 2010, at 10:30, Galder Zamarreno wrote:
>>>
>>>> Manik,
>>>>
>>>> If String's are dealt with by calling String.getBytes() which in
>>>> turns gets processed as a byte[], why is there such a big
>>>> difference SuperFastHash String speed and MurmurHash2 String speed
>>>> (162 ms vs 56 ms) but there's hardly any difference between the
>>>> byte[] tests (29ms vs 40ms) ?
>>>
>>> No idea. Microbenchmarks are notoriously fickle though, I will try
>>> and run this again over a larger sample size to smooth things out a bit.
>>>
>>
>> UTF-8 encoding. It has a cost.
>>
> ^ measurable
Yes, but the cost shouldn't be different when used with different hash functions. :)
--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org
More information about the infinispan-dev
mailing list