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

Reuse byte buffers in AsyncRpcClient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.0.0
    • None
    • Client
    • None

    Description

      IPCUtil.buildCellBlock is used by both server and client. Server provides BoundedByteBufferPool for buffers reuse, client code does not do that. This results in additional memory pressure on a client side, because buffers are allocated on every call to IPCUtil.buildCellBlock.

      My own local tests (with patch) show approximately 8-10% reduction in object allocation rate on a client side (with HBASE-15479 as well).

      Attachments

        1. HBASE-15491-v1.patch
          6 kB
          Vladimir Rodionov

        Issue Links

          Activity

            People

              vrodionov Vladimir Rodionov
              vrodionov Vladimir Rodionov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: