tomaswolf commented on issue #485:
URL: https://github.com/apache/mina-sshd/issues/485#issuecomment-2059918256

   Thank you for this test case. It appears that there is indeed something 
wrong with the `FileChannel`s. The following is in my tests much faster (and on 
par with OpenSSH or Jsch):
   ```
   SftpClient sftpClient = 
SftpClientFactory.instance().createSftpClient(session);
   try (OutputStream out = sftpClient.write("largeFile")) {
       Files.copy(new File(largeFile).toPath(), out);
   }
   ```
   or also
   ```
   try (SftpFileSystem fs = 
SftpClientFactory.instance().createSftpFileSystem(session)) {
     Path remoteFile = fs.getPath("largeFile");
     Files.copy(new File(largeFile).toPath(), remoteFile, 
StandardCopyOption.REPLACE_EXISTING);
   }
   ```
   
   With the channels and `transferTo` I see uploads (to localhost, so no 
network latency) about 4 times (400%) slower, and downloads about 25% slower. 
We'll have to investigate what's going on there...
   
   What is the JSCHED library?


-- 
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: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to