duongkame commented on code in PR #6162:
URL: https://github.com/apache/ozone/pull/6162#discussion_r1482307895


##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/common/ChecksumByteBufferImpl.java:
##########
@@ -35,6 +39,8 @@ public class ChecksumByteBufferImpl implements 
ChecksumByteBuffer {
   private final Checksum checksum;

Review Comment:
   `PureJavaCrc32ByteBuffer` impl involves reading buffers, while the  `CRC32` 
implementation in JDK9+ (e.g. in OpenJdk11) calculates checksum using native 
code on the native buffer directly and that probably indicates performance 
advantages. 
   
   Probably we should only replace the `return new ChecksumByteBufferImpl(new 
PureJavaCrc32C()); ` by  `return new PureJavaCrc32CByteBuffer();`, but I'm not 
sure what's the advatages. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to