You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Francesco Nigro (JIRA)" <ji...@apache.org> on 2018/04/30 07:16:00 UTC
[jira] [Closed] (ARTEMIS-1816) OpenWire should avoid
ByteArrayOutputStream lazy allocation
[ https://issues.apache.org/jira/browse/ARTEMIS-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francesco Nigro closed ARTEMIS-1816.
------------------------------------
Resolution: Fixed
Fix Version/s: 2.5.1
> OpenWire should avoid ByteArrayOutputStream lazy allocation
> -----------------------------------------------------------
>
> Key: ARTEMIS-1816
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1816
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Components: Broker, OpenWire
> Affects Versions: 2.5.0
> Reporter: Francesco Nigro
> Assignee: Francesco Nigro
> Priority: Minor
> Fix For: 2.5.1
>
>
> OpenWireMessageConverter::toAMQMessage on bytes messages is lazy allocating a write buffer with a default size of 1024 even when it won't be used to write anything.
> To avoid an useless allocation would be better to reduce it to a zero length one.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)