tomaswolf commented on issue #485: URL: https://github.com/apache/mina-sshd/issues/485#issuecomment-2059973935
Interesting: if you change in your code ``` readableChannel.transferTo(0, length, writeableChannel); ``` to ``` writeableChannel.transferFrom(readableChannel, 0, length); ``` it will also run much faster (but still 25% slower than the two versions with `Files.copy()` I posted). Off-topic note: you should probably also check the return value of transferTo/transferFrom and execute them in a loop until everything is transferred. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
