hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-7884) ByteBloomFilter's performance can be optimized by avoiding multiplexing operation when generating hash
Date Thu, 21 Feb 2013 00:33:14 GMT

    [ 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

Mime
View raw message