hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "binlijin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-17332) Replace HashMap to Array for DataBlockEncoding.idToEncoding
Date Mon, 19 Dec 2016 02:28:58 GMT
binlijin created HBASE-17332:
--------------------------------

             Summary: Replace HashMap to Array for DataBlockEncoding.idToEncoding
                 Key: HBASE-17332
                 URL: https://issues.apache.org/jira/browse/HBASE-17332
             Project: HBase
          Issue Type: Improvement
    Affects Versions: 2.0.0
            Reporter: binlijin
            Assignee: binlijin
             Fix For: 2.0.0


Array is faster than HashMap also no need to autoboxing.
I can see the DataBlockEncoding#getDataBlockEncoderById is a hot method if enable encoding
in my perf test(Random read, all data cache in LruBlockCache). 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message