Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-589

Eliminate buffer copying in SegmentedRaftLogOutputStream

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.1
    • server
    • None

    Description

      In SegmentedRaftLogOutputStream.write(LogEntryProto entry), the entry is first converted to a byte array and then write to BufferedWriteChannel. In BufferedWriteChannel, it copies the byte array to a ByteBuffer. The copying should be eliminated.

      Attachments

        1. r589_20190614.patch
          21 kB
          Tsz-wo Sze
        2. r589_20190617.patch
          19 kB
          Tsz-wo Sze
        3. r589_20190618.patch
          19 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h