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

Avoid copying the rowkey in RegionScanner, StoreScanner, and ScanQueryMatcher

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.94.4, 0.95.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Did some profiling again.
      I we can gain some performance [1] when passing buffer, rowoffset, and rowlength instead of making a copy of the row key.
      That way we can also remove the row key caching (and this patch also removes the timestamps caching). Considering the sheer number in which we create KVs, every byte save is good.

      [1] (15-20% when data is in the block cache we setup a Filter such that only a single row is returned to the client).

        Attachments

        1. 7279-0.94.txt
          9 kB
          Lars Hofhansl
        2. 7279-0.94-v2.txt
          9 kB
          Lars Hofhansl
        3. 7279-0.94-v3.txt
          9 kB
          Lars Hofhansl
        4. 7279-0.94-v4.txt
          11 kB
          Lars Hofhansl
        5. 7279-0.96-v1.txt
          10 kB
          Lars Hofhansl
        6. 7279-0.96-v2.txt
          11 kB
          Lars Hofhansl
        7. 7279-0.96-v3.txt
          11 kB
          Lars Hofhansl

          Issue Links

            Activity

              People

              • Assignee:
                lhofhansl Lars Hofhansl
                Reporter:
                lhofhansl Lars Hofhansl
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: