Harmony
  1. Harmony
  2. HARMONY-6328

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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.

      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

          Regis Xu made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Regis Xu made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 5.0M12 [ 12314191 ]
          Resolution Fixed [ 1 ]
          Regis Xu made changes -
          Assignee Regis Xu [ regis_xu ]
          Regis Xu made changes -
          Attachment HARMONY-6328.final.diff [ 12419983 ]
          Regis Xu made changes -
          Attachment test.diff [ 12418790 ]
          Regis Xu made changes -
          Attachment HARMONY-6328.v3.diff [ 12418786 ]
          Tim Ellison made changes -
          Link This issue is part of HARMONY-5488 [ HARMONY-5488 ]
          Regis Xu made changes -
          Attachment HARMONY-6328.v2.diff [ 12418351 ]
          Regis Xu made changes -
          Field Original Value New Value
          Attachment HARMONY-6328.diff [ 12418328 ]
          Regis Xu created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development