Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20188 [TESTING] Performance
  3. HBASE-21750

Most of KeyValueUtil#length can be replaced by cell#getSerializedSize for better performance because the latter one has been optimized

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.2.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      After HBASE-21657, Most subclass of Cell has a cached serialized size (Except those cells with tags), so I think most of the KeyValueUtil#length can be replaced by cell#getSerializedSize. Such as:

      • KeyValueUtil.length in StoreFlusher#performFlush;
      • KeyValueUtil.length in Compactor#performCompaction ;

      and so on..

      Will prepare a patch for this.

        Attachments

        1. HBASE-21750.v1.patch
          23 kB
          Zheng Hu
        2. HBASE-21750.v1.patch
          23 kB
          stack
        3. HBASE-21750.v2.patch
          26 kB
          Zheng Hu
        4. HBASE-21750.v3.patch
          32 kB
          Zheng Hu
        5. HBASE-21750.v3.patch
          32 kB
          Zheng Hu

          Issue Links

            Activity

              People

              • Assignee:
                openinx Zheng Hu
                Reporter:
                openinx Zheng Hu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: