[
https://issues.apache.org/jira/browse/HDDS-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anu Engineer updated HDDS-1227:
-------------------------------
Labels: pushed-to-craterlake (was: )
> 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
> Priority: Major
> Labels: pushed-to-craterlake
> 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: [email protected]
For additional commands, e-mail: [email protected]