How to increase the speed when downloading files from SFTP

0 votes
asked May 26, 2011 by Raj (120 points)
edited May 27, 2011

How to increase the speed when downloading files from SFTP to local using REBEX Code in Visual Basic

1 Answer

0 votes
answered May 27, 2011 by Lukas Pokorny (107,310 points)
edited May 27, 2011

Before connecting to the server, try enabling the UseLargeBuffers option:

  sftp.Options |= SftpOptions.UseLargeBuffers; //(C#)
  sftp.Options = sftp.Options Or SftpOptions.UseLargeBuffers; ' VB.NET

  sftp.Connect(...)

(where 'sftp' is an instance of the Sftp object)

Does that make a difference?

...