You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Yutong Xiao (Jira)" <ji...@apache.org> on 2021/12/29 12:54:00 UTC

[jira] [Created] (HBASE-26635) Optimize decodeNumeric in OrderedBytes

Yutong Xiao created HBASE-26635:
-----------------------------------

             Summary: Optimize decodeNumeric in OrderedBytes
                 Key: HBASE-26635
                 URL: https://issues.apache.org/jira/browse/HBASE-26635
             Project: HBase
          Issue Type: Improvement
          Components: Performance
            Reporter: Yutong Xiao
            Assignee: Yutong Xiao


Currently, when we decode a byte array to a big decimal, there are plenty of BigDecimal operations, which result in a lot of only once used BigDecimal objects. Furthermore, the BigDecimal calculations are slow. We could boost this function by using String concatenation and point movement of BigDecimal. The JMH benchmark is uploaded to the attachment.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)