Github user ConeyLiu commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20026#discussion_r162810684
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/DiskStore.scala ---
    @@ -152,7 +153,7 @@ private class DiskBlockData(
         file: File,
         blockSize: Long) extends BlockData {
     
    -  override def toInputStream(): InputStream = new FileInputStream(file)
    +  override def toInputStream(): InputStream = new 
NioBufferedFileInputStream(file)
    --- End diff --
    
    >IIUC for network (netty) transmission, it uses zero copy sendFile, which 
is another path (toNetty). 
    
    Thanks for explaining, I did not notice this before.



---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to