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

Reduce garbage created in the Transport layer

    XMLWordPrintableJSON

    Details

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

      Description

      The Transport implementation currently creates a new Transfer, Flow, and Disposition object for each write to the FrameWriter which creates an excessive amount of unnecessary throw away objects.  The Transport can cache a single instance of each type and properly fill the fields (or set to defaults) on each write to ensure consistency. 

      This change requires adding a copy method to the types such that the tests that intercept written frame data objects can create a copy for later analysis. 

        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: