szetszwo commented on pull request #296: URL: https://github.com/apache/incubator-ratis/pull/296#issuecomment-732990668
> But we need to calculate checksum, so client still need read data, to avoid reading data to user space, we can use MapByteBuffer. so we need 2 times read data from disk to kernel space: transferTo and MapByteBuffer. We may pass MapByteBuffer to our writeAsync(..) method. We should benchmark it. I suspect it is better than transferTo(..) since it is using transferToArbitraryChannel(..). ---------------------------------------------------------------- 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]
