Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-5488

[classlib][nio] Scatter/gather calls should use OS functionality

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Classlib
    • None
    • Moderate

    Description

      I just noticed that our NIO implementation of scatter / gather calls (e.g. o.a.h.nio.internal.SocketChannelImpl#write(ByteBuffer[],int,int)) are actually copying the data into a single Java heap buffer before calling the OS! and FileChannelImpl copies into a single direct byte buffer.

      These need to be reimplemented in terms of the OS scatter/gather capabilities to avoid copying.

      Attachments

        1. Harmony-5488.diff
          3 kB
          Sean Qiu

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tellison Tim Ellison

              Dates

                Created:
                Updated:

                Slack

                  Issue deployment