You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Francesco Nigro (Jira)" <ji...@apache.org> on 2022/05/13 18:15:00 UTC
[jira] [Created] (KAFKA-13900) Support Java 9 direct ByteBuffer Checksum methods
Francesco Nigro created KAFKA-13900:
---------------------------------------
Summary: Support Java 9 direct ByteBuffer Checksum methods
Key: KAFKA-13900
URL: https://issues.apache.org/jira/browse/KAFKA-13900
Project: Kafka
Issue Type: Improvement
Components: clients, core
Affects Versions: 3.1.1
Reporter: Francesco Nigro
Java 9 has added a new Checksum method that can makes uses of ByteBuffer(s) (see https://docs.oracle.com/javase/9/docs/api/java/util/zip/Checksum.html#update-java.nio.ByteBuffer-): kafka already provides specific support for Java 9's Cr32C, hence it makes sense it's going to use the most optimized version of it, in case fed ByteBuffer is direct (read-only or not), instead of performing a computation byte-per-byte.
I'm aware that currently the client's Buffer pools aren't using direct ByteBuffer, but having full support for it can open the door to future interesting optimizations on it.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)