pkg / sftp

SFTP support for the go.crypto/ssh package
BSD 2-Clause "Simplified" License
1.49k stars 379 forks source link

The performance of transferring file is bad #575

Open zhanghaiyang9999 opened 5 months ago

zhanghaiyang9999 commented 5 months ago

Compare to scp command, use same file and same source and destination hosts. SCP command: scp localfile root@remotehost:/root/test it took 30seconds use linux sftp tool it aslo took about 30 seconds.

but with this go/sftp package, it took 90 seconds.

there is any optimization method? thanks!

puellanivis commented 5 months ago

Are you using UseConcurrentWrites and/or UseConcurrentReads