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

[0.98] Save object creation for scanning with block encodings

    XMLWordPrintableJSON

    Details

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

      Description

      I noticed that (at least in 0.98 - master is entirely different) we create ByteBuffer just to create a byte[], which is then used to create a KeyValue.

      We can save the creation of the ByteBuffer and hence save allocating an extra object for each KV we find by creating the byte[] directly.

      In a Phoenix count(*) query that saved from 10% of runtime.

        Attachments

        1. 14628-0.98.txt
          7 kB
          Lars Hofhansl
        2. 14628-0.98-v2.txt
          8 kB
          Lars Hofhansl

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: