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

FrameWriter allocates additional buffer capacity inefficiently

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • proton-j-0.26.0
    • proton-j-0.27.0
    • proton-j
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: