franz1981 commented on pull request #3223:
URL: https://github.com/apache/activemq-artemis/pull/3223#issuecomment-662347163


   @clebertsuconic The fix seems to work fine, but I'm not very proud of the 
solution: if we want to write 128 bytes and the block size is 4096, 
`bufferControl` allocates (or can reuse) a 4096 sized ByteBuffer without 
zeroing it (that's nice), but the journal record still need to zero `4096 - 
128` bytes to save having garbage data on the journal. If we write enough data 
this optimization can save lot of zeroing but cannot eliminate it.  


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

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


Reply via email to