[ 
https://issues.apache.org/jira/browse/KAFKA-13734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Francesco Nigro updated KAFKA-13734:
------------------------------------
    Description: 
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 the currently 
supported JDK version ie 8: MethodHandler::invokeExact seems a good candidate 
to do it.

 

  was:
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.

 


> 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
>            Priority: Minor
>
> 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 the 
> currently supported JDK version ie 8: MethodHandler::invokeExact seems a good 
> candidate to do it.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to