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

Refactor FrameWriter to avoid reencodes when buffer space is insufficient

    Details

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

      Description

      The current FrameWriter implementation uses a ByteBuffer wrapped in a ReadableBuffer to encode to and if the buffer is to small it recreates the buffer with a larger size and must perform a second encode to finish the job.  We can now implement our own ReadableBuffer type for the writer that both performs better by dropping the ByteBuffer abstractions and that grows as needed to fit the encoding of the types and the accompanying payloads (for Transfers).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: