[
https://issues.apache.org/jira/browse/HBASE-7884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13582722#comment-13582722
]
Ted Yu commented on HBASE-7884:
-------------------------------
{code}
- long hashLoc = Math.abs((hash1 + i * hash2) % bloomBitSize);
- if (!get(hashLoc, bloomArray, bloomOffset))
+ int hashLoc = Math.abs(compositeHash % bloomBitSize);
+ compositeHash += hash2;
{code}
Looks like the original operation was slightly changed: the addition of hash2
should be followed by modulo.
> ByteBloomFilter's performance can be optimized by avoiding multiplexing
> operation when generating hash
> -------------------------------------------------------------------------------------------------------
>
> Key: HBASE-7884
> URL: https://issues.apache.org/jira/browse/HBASE-7884
> Project: HBase
> Issue Type: Bug
> Components: Performance
> Affects Versions: 0.94.5
> Reporter: clockfly
> Priority: Minor
> Attachments: bloom_performance_tunning.patch
>
>
> ByteBloomFilter's performance can be optimized by avoiding multiplexing
> operation when generating hash
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira