You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ratis.apache.org by GitBox <gi...@apache.org> on 2020/11/24 12:08:53 UTC

[GitHub] [incubator-ratis] runzhiwang edited a comment on pull request #296: RATIS-1175. DataStreamOutput should support FileChannel#transferTo.

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:
users@infra.apache.org