Francesco Nigro created KAFKA-13734:
---------------------------------------
Summary: Selector can make use of JDK 11 zero copy NIO select
Key: KAFKA-13734
URL: https://issues.apache.org/jira/browse/KAFKA-13734
Project: Kafka
Issue Type: Improvement
Components: clients, producer
Reporter: Francesco Nigro
JDK 11 has introduced zero copy select ie
[https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/channels/Selector.html#select(java.util.function.Consumer)]
that can be used to reduce the amount of GC created by Selector::poll.
It would be nice to access these new methods without impacting on existing JDK
(< 11): MethodHandler::invokeExact seems a good candidate to do it.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)