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

CellUtil#estimatedSerializedSizeOf is slow when input is ByteBufferCell

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • None
    • None
    • Reviewed

    Description

      We call CellUtil#estimatedSerializedSize to calculate the size of rows when scanning. If the input is ByteBufferCell, the CellUtil#estimatedSerializedSizeOf parses many length components to get the qualifierLength stored in the backing buffer.
      We should consider using the KeyValueUtil#getSerializedSize.

      Attachments

        1. HBASE-17836.v1.patch
          2 kB
          Chia-Ping Tsai
        2. HBASE-17836.v0.patch
          1 kB
          Chia-Ping Tsai

        Activity

          People

            chia7712 Chia-Ping Tsai
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: