Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
protonj2-1.0.0-M7
-
None
Description
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.