hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Yang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-16612) Use array to cache Types for KeyValue.Type.codeToType
Date Mon, 12 Sep 2016 07:03:20 GMT

     [ https://issues.apache.org/jira/browse/HBASE-16612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Phil Yang updated HBASE-16612:
------------------------------
    Attachment: HBASE-16612-v1.patch

> Use array to cache Types for KeyValue.Type.codeToType
> -----------------------------------------------------
>
>                 Key: HBASE-16612
>                 URL: https://issues.apache.org/jira/browse/HBASE-16612
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Phil Yang
>            Assignee: Phil Yang
>            Priority: Minor
>         Attachments: HBASE-16612-v1.patch
>
>
> We don't rely on enum ordinals in KeyValye.Type. We have own code in it. In codeToType,
we use a loop to find the Type which is not a good idea. We can just use an arryay[256] to
cache all types.



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

Mime
View raw message