GitHub user xvrl opened a pull request: https://github.com/apache/kafka/pull/3090
KAFKA-5150 reduce lz4 decompression overhead - Backport to 0.10.2.x You can merge this pull request into a Git repository by running: $ git pull https://github.com/xvrl/kafka kafka-5150-0.10 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/3090.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 #3090 ---- commit 265ee89ec76b223eb97c6b364260443346e6dac1 Author: Xavier Léauté <xav...@confluent.io> Date: 2017-05-03T17:03:44Z KAFKA-5150 reduce lz4 decompression overhead - reuse decompression buffers, keeping one per thread - switch lz4 input stream to operate directly on ByteBuffers - more tests with both compressible / incompressible data, multiple blocks, and various other combinations to increase code coverage - fixes bug that would cause EOFException instead of invalid block size for invalid incompressible blocks commit cef091d0353a8a1f45ac913750f1e0dba04d7ab1 Author: Xavier Léauté <xav...@confluent.io> Date: 2017-05-05T22:18:55Z avoid exception when reaching end of batch ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---