GitHub user michaelandrepearce opened a pull request:
https://github.com/apache/activemq-artemis/pull/1262
Avoid byte[] copy
Avoid copying bytes, instead simply slice the existing buffer. This avoids
if the buffer is off heap, it becoming on heap.
Need to create jira etc, but simply creating PR to pair with discussion in
mail thread.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/michaelandrepearce/activemq-artemis
michaelandrepearce-patch-1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/1262.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 #1262
----
commit da80e9034c2242954c56d7e56a7fc407ffe99fe8
Author: Michael André Pearce <[email protected]>
Date: 2017-05-10T01:33:37Z
Avoid byte[] copy
Avoid copying bytes, instead simply slice the existing buffer. This avoids
if the buffer is off heap, it becoming on heap.
commit e8fb648fbc0be9762a39583f093275dfe7758a72
Author: Michael André Pearce <[email protected]>
Date: 2017-05-10T02:40:45Z
Avoid byte[] copy
Avoid copying bytes, instead simply slice the existing buffer. This avoids
if the buffer is off heap, it becoming on heap.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---