Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-26635

Optimize decodeNumeric in OrderedBytes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0, 3.0.0-alpha-3
    • Performance
    • None
    • Reviewed

    Description

      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.

      Also, I added a UT to test the encoding / decoding correctness of 200 random test samples.

      The logic of the process is same as the Optimization of the encode function in the ticket HBASE-26566

      Attachments

        1. DecodeBenchmark.java
          4 kB
          Yutong Xiao
        2. Benchmark-decoding.log
          4 kB
          Yutong Xiao

        Issue Links

          Activity

            People

              xytss123 Yutong Xiao
              xytss123 Yutong Xiao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: