[
https://issues.apache.org/jira/browse/PROTON-2591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17577657#comment-17577657
]
ASF subversion and git services commented on PROTON-2591:
---------------------------------------------------------
Commit 22ac0613f24c3818b8ccc86c8cb7be4eb79e4302 in qpid-protonj2's branch
refs/heads/main from Timothy Bish
[ https://gitbox.apache.org/repos/asf?p=qpid-protonj2.git;h=22ac0613 ]
PROTON-2591 Provide a non-default allocation size for message buffers
Provide a larger than default size for initial buffer allocation for
encoding messages (256 bytes) which avoids a rapid buffer reallocation
and copy for most small outgoing messages.
> [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]