You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Timothy A. Bish (Jira)" <ji...@apache.org> on 2022/08/09 22:50:00 UTC
[jira] [Created] (PROTON-2591) [protonj2] Use an appropriate initial allocation size for the client message encoder
Timothy A. Bish created PROTON-2591:
---------------------------------------
Summary: [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
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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org