You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Shashikant Banerjee (JIRA)" <ji...@apache.org> on 2019/03/06 07:54:00 UTC
[jira] [Created] (HDDS-1227) Avoid extra buffer copy during
checksum computation in write Path
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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org