xvrl opened a new pull request #11052: URL: https://github.com/apache/kafka/pull/11052
Our current LZ4 OutputStream implementation allocates compression buffers internally and relies on intermediate byte arrays for input and output buffers. With this change we now use ByteBuffers internally, and as a result: * we write directly to the target ByteBuffer, avoiding an additional copy * we no longer allocate an output compression buffer, reducing allocations by half * we pave the way to make compression buffers reusable, similar to what we do for decompression -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org