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

Remove keyLength cache from KeyValue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.98.0, 0.96.1, 0.94.14
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: