jojochuang opened a new pull request, #3759:
URL: https://github.com/apache/ozone/pull/3759

   ChecksumByteBufferImpl.update() copies the bytebuffer before checksum 
calculation because the isReadOnly field of ByteBuffer is false.
   
   This is a quick&dirty hack, which uses inflection to reset the isReadOnly 
field of ByteBuffer to true, so that ChecksumByteBufferImpl.update performs 
checksum calculation directly without memory copy.
   
   Posting this as a draft. It's a dirty hack and I like it, and it does work 
without any visible overhead.
   
   ## What changes were proposed in this pull request?
   
   HDDS-7228
   
   ## What is the link to the Apache JIRA
   
   (Please create an issue in ASF JIRA before opening a pull request,
   and you need to set the title of the pull request which starts with
   the corresponding JIRA issue number. (e.g. HDDS-XXXX. Fix a typo in YYY.)
   
   Please replace this section with the link to the Apache JIRA)
   
   ## How was this patch tested?
   
   (Please explain how this patch was tested. Ex: unit tests, manual tests)
   (If this patch involves UI changes, please attach a screen-shot; otherwise, 
remove this)
   


-- 
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