iprithv commented on PR #12237:
URL: https://github.com/apache/ozone/pull/12237#issuecomment-7402639023

   @szetszwo thanks for checking this.
   on significance, i don't have any numbers and i agree this will not have 
perf win...but we still allocate the byte[4]. this only skips the throwaway 
ByteBuffer around it. that runs once per checksum window (~256 times per 4 MiB 
chunk on write + DN validate via Checksum.int2ByteString)
   
   for correctness, same big-endian layout as ByteBuffer.putInt / Guava 
Ints.toByteArray. TestCodec already asserts the codec bytes match Guava for 0, 
1, -1, MAX, MIN, and random values.


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