GitHub user franz1981 opened a pull request: https://github.com/apache/activemq-artemis/pull/2479
ARTEMIS-2211 Avoid duplicate code for ByteBuffer pooling and alignment Refactored thread local ByteBuffer pooling for both NIO & MAPPED seq file factories and used fast branchless alignment operation for ASYNCIO seq file factory, reusing an util class that was used just for the MAPPED journal. You can merge this pull request into a Git repository by running: $ git pull https://github.com/franz1981/activemq-artemis fast_pow_2mod Alternatively you can review and apply these changes as the patch at: https://github.com/apache/activemq-artemis/pull/2479.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 #2479 ---- commit 541172fd0f45540193a95e708e914abd3adc9cb9 Author: Francesco Nigro <nigro.fra@...> Date: 2018-12-20T10:11:36Z ARTEMIS-2211 Avoid duplicate code for ByteBuffer pooling and alignment Refactored thread local ByteBuffer pooling for both NIO & MAPPED seq file factories and used fast branchless alignment operation for ASYNCIO seq file factory, reusing an util class that was used just for the MAPPED journal. ---- ---