Shashikant Banerjee created HDDS-1227:
-----------------------------------------

             Summary: Avoid extra buffer copy during checksum computation in 
write Path
                 Key: HDDS-1227
                 URL: https://issues.apache.org/jira/browse/HDDS-1227
             Project: Hadoop Distributed Data Store
          Issue Type: Improvement
          Components: Ozone Client
    Affects Versions: 0.4.0
            Reporter: Shashikant Banerjee
            Assignee: Shashikant Banerjee
             Fix For: 0.4.0


The code here does a buffer copy to to compute checksum. This needs to be 
avoided.
{code:java}
/**
 * Computes checksum for give data.
 * @param byteString input data in the form of ByteString.
 * @return ChecksumData computed for input data.
 */
public ChecksumData computeChecksum(ByteString byteString)
    throws OzoneChecksumException {
  return computeChecksum(byteString.toByteArray());
}

{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to