runzhiwang edited a comment on pull request #296:
URL: https://github.com/apache/incubator-ratis/pull/296#issuecomment-732925118


   @szetszwo Hi, in transferTo method there are three methods: 
transferToDirectly which use sendfile and is the fastest, 
transferToTrustedChannel which use MapByteBuffer, transferToArbitraryChannel 
which use HeapByteBuffer and is the slowest. Our code use the slowest 
transferToArbitraryChannel , which will use HeapByteBuffer as the image shows. 
Not sure whether can we support transferToDirectly or transferToTrustedChannel, 
maybe we can not use netty if we want to support transferToDirectly.
   
   
![image](https://user-images.githubusercontent.com/51938049/100091291-5e2adb00-2e8f-11eb-8efb-c0940bde7357.png)
   


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