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

Caching KeyValue.getRowLength() to improve scan performance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • None
    • None
    • regionserver
    • None

    Description

      Looking at the profile seems that Bytes.toShort() is called a lot.
      the calls are in ScanQueryMatcher.match() and KeyValue.KeyComparator.compare()

      getKeyLength() is already cached, but getRowLength() is not.

      Attachments

        1. HBASE-8418-0.94-v0.patch
          4 kB
          Matteo Bertozzi

        Activity

          People

            Unassigned Unassigned
            mbertozzi Matteo Bertozzi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: