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

Remove keyLength cache from KeyValue

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.98.0, 0.96.1, 0.94.14
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      See discussion in HBASE-9935. Currently KeyValue caches the keyLength in order to avoid decoding the key length in getKeyLength() repeatedly.
      Benchmarking outside of a profiler revealed no improvement from that cache (and a sampling profiler also does not indicate getKeyLength() as a performance issue).
      Along with this there's also a slight fix in ScanQueryMatcher.

        Attachments

        1. 9935-0.94.txt
          4 kB
          Lars Hofhansl
        2. 9956-0.94.txt
          5 kB
          Lars Hofhansl
        3. 9956-trunk.txt
          4 kB
          Lars Hofhansl

          Activity

            People

            • Assignee:
              larsh Lars Hofhansl
              Reporter:
              larsh Lars Hofhansl
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: