Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-13734

Selector can make use of JDK 11 zero copy NIO select

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • clients, producer
    • None

    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.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            nigrofranz Francesco Nigro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: