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

[classlib][nio] optimize SocketChannel.write(ByteBuffer[], int, int) by writev

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0M11
    • Fix Version/s: 5.0M12
    • Component/s: Classlib
    • Labels:
      None

      Description

      SocketChannel.write(ByteBuffer[], int, int) can be optimized by using writev, which can write an array of buffer to socket without any stage buffer. If all passed in ByteBuffer is direct buffer, they can be passed to system call directly without any copies.

        Attachments

        1. HARMONY-6328.diff
          8 kB
          Regis Xu
        2. HARMONY-6328.final.diff
          16 kB
          Regis Xu
        3. HARMONY-6328.v2.diff
          10 kB
          Regis Xu
        4. HARMONY-6328.v3.diff
          13 kB
          Regis Xu
        5. test.diff
          3 kB
          Regis Xu

          Issue Links

            Activity

              People

              • Assignee:
                regis_xu Regis Xu
                Reporter:
                regis_xu Regis Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: