[ 
https://issues.apache.org/jira/browse/PROTON-1967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16692270#comment-16692270
 ] 

ASF subversion and git services commented on PROTON-1967:
---------------------------------------------------------

Commit be6d9209e7e6e7311c1bdfae592469be29b918e3 in qpid-proton-j's branch 
refs/heads/master from [~tabish121]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton-j.git;h=be6d920 ]

PROTON-1967 Reduce garbage created in the transport

Used cached isntances of objects that are created and immediately discared
after being sent into the frame writer.  In order to fix tests the FrameBody
types all need a copy method so that the events coming through the transport
can be recorded for later analysis.


> Reduce garbage created in the Transport layer
> ---------------------------------------------
>
>                 Key: PROTON-1967
>                 URL: https://issues.apache.org/jira/browse/PROTON-1967
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-j
>    Affects Versions: proton-j-0.30.0
>            Reporter: Timothy Bish
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: proton-j-0.31.0
>
>
> 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. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to