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

Avoid visitor alloc each call of ByteBufferArray get/putMultiple()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.1, 1.1.0, 2.0.0
    • 1.2.0, 1.1.1, 2.0.0
    • regionserver
    • None

    Description

      ByteBufferArray getMultiple()/putMultiple() creates a new Visitor each call. we can move that visitor out.

      also, ByteBufferArray.multiple() seems to be an hotspot, I tried to do some experiments using slice and read/write lock instead of a mutex, doesn't seems to change much. any thoughts?

      Attachments

        1. HBASE-13894-v0.patch
          3 kB
          Matteo Bertozzi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: