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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0M11
    • 5.0M12
    • Classlib
    • 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.v2.diff
          10 kB
          Regis Xu
        3. HARMONY-6328.v3.diff
          13 kB
          Regis Xu
        4. test.diff
          3 kB
          Regis Xu
        5. HARMONY-6328.final.diff
          16 kB
          Regis Xu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: