Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-10756

Avoid proto2 ByteString#copyFrom(byte[])

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • None
    • 1.5.0
    • None

    Description

      As the name implied, ByteString#copyFrom(byte[]) creates a ByteString by copying the given byte array. In some cases (e.g. the byte array is already copied), the copying can be avoided by using Proto2Utils.unsafeByteString(byte[]).

      Attachments

        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: