[ 
https://issues.apache.org/jira/browse/PROTON-2591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Timothy A. Bish resolved PROTON-2591.
-------------------------------------
    Resolution: Fixed

> [protonj2] Use an appropriate initial allocation size for the client message 
> encoder
> ------------------------------------------------------------------------------------
>
>                 Key: PROTON-2591
>                 URL: https://issues.apache.org/jira/browse/PROTON-2591
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: protonj2
>    Affects Versions: protonj2-1.0.0-M7
>            Reporter: Timothy A. Bish
>            Assignee: Timothy A. Bish
>            Priority: Minor
>             Fix For: protonj2-1.0.0-M8
>
>
> The message encoder in the client is using a default allocation API for the 
> output buffer which results in a buffer that is almost always to small for 
> the encoded message leading to at least one resize and copy of the bytes as 
> they are encoded.  The client should choose a more realistic size for the 
> initial allocation that at least allows a small message to be encoded into 
> the output buffer without a resize.



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

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

Reply via email to