chia7712 opened a new pull request #9220: URL: https://github.com/apache/kafka/pull/9220
issue: https://issues.apache.org/jira/browse/KAFKA-10433 It is hot method so reusing the ByteBuffer can reduce a bunch of memory usage if the compression type supports BufferSupplier. **experiment** - duration: 1 minute - compression: LZ4 - memory usage of byte array allocation: 4.52 GB -> 0.68 GB ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org