You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/09/13 19:11:00 UTC

[jira] [Commented] (PROTON-2609) [proton-j] Remove unnecessary ByteBuffer slices and duplicates from the codec

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

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

Commit fa744f39843a26908cabf47dca5f8354bc57d6dc in qpid-proton-j's branch refs/heads/main from Timothy Bish
[ https://gitbox.apache.org/repos/asf?p=qpid-proton-j.git;h=fa744f39 ]

PROTON-2609 Remove buffer slices and duplicates from the codec

The decoder creates ByteBuffer slices and duplicates for operations
that really on need simple state tracking to set limits for gets
when copying incoming buffers to byte arrays for String or Symbol
decoding. We can reduce GC pressure under load by just removing
those in the codec without and impact on the API.


> [proton-j] Remove unnecessary ByteBuffer slices and duplicates from the codec 
> ------------------------------------------------------------------------------
>
>                 Key: PROTON-2609
>                 URL: https://issues.apache.org/jira/browse/PROTON-2609
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-j
>    Affects Versions: proton-j-0.34.0
>            Reporter: Timothy A. Bish
>            Assignee: Timothy A. Bish
>            Priority: Minor
>             Fix For: proton-j-0.35.0
>
>
> The internal proton-j codec create several unneeded ByteBuffer slices and duplicates where it could just track buffer position and limits when needed to read byte array data and not create excess GC pressure just to read a Symbol payload or String body etc.  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org