lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-5604) Should we switch BytesRefHash to MurmurHash3?
Date Tue, 15 Apr 2014 21:55:15 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13970104#comment-13970104
] 

Simon Willnauer commented on LUCENE-5604:
-----------------------------------------

I'm +1 on getting this into 4.8 as well - I ran into a lot of problems where BytesRef#hashCode()
had problems

> Should we switch BytesRefHash to MurmurHash3?
> ---------------------------------------------
>
>                 Key: LUCENE-5604
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5604
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 4.9, 5.0
>
>         Attachments: BytesRefHash.perturb.patch, LUCENE-5604.patch, LUCENE-5604.patch,
LUCENE-5604.patch
>
>
> MurmurHash3 has better hashing distribution than the current hash function we use for
BytesRefHash which is a simple multiplicative function with 31 multiplier (same as Java's
String.hashCode, but applied to bytes not chars).  Maybe we should switch ...



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message