GitHub user franz1981 opened a pull request:

    https://github.com/apache/activemq-artemis/pull/2031

    ARTEMIS-1816 OpenWire should avoid ByteArrayOutputStream lazy allocation

    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.
    It avoid an useless allocation by reducing it to new byte[0].

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/franz1981/activemq-artemis ARTEMIS-1816

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/2031.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2031
    
----
commit a391704c54d1d73e0dcc57e5c71a384e6299e3cd
Author: Francesco Nigro <nigro.fra@...>
Date:   2018-04-19T15:46:26Z

    ARTEMIS-1816 OpenWire should avoid ByteArrayOutputStream lazy allocation
    
    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.
    It avoid an useless allocation by reducing it to new byte[0].

----


---

Reply via email to