[
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)