activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francesco Nigro (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARTEMIS-1816) OpenWire should avoid ByteArrayOutputStream lazy allocation
Date Thu, 19 Apr 2018 15:42:00 GMT
Francesco Nigro created ARTEMIS-1816:
----------------------------------------

             Summary: 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


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 avoid it or at least reduce it to a zero
length one.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message