Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1808

FrameWriter allocates additional buffer capacity inefficiently

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: proton-j-0.26.0
    • Fix Version/s: proton-j-0.27.0
    • Component/s: proton-j
    • Labels:
      None

      Description

      When writing a Transfer that has a larger payload than previously seen the FrameWriter may need to grow its internal buffer to accommodate that transfer.  The current strategy is to double the capacity of the current buffer and copy the old bytes into the new buffer and then check again if there is room.  Depending on the frame size setting and the size of the transfer this can result in a large amount of garbage being created and a number of unneeded copies of encoded performative data. 

        Attachments

          Activity

            People

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              tabish Timothy A. Bish
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: