EldoS | Feel safer!

Software components for data protection, secure storage and transfer

FTPS download speed vs ftpwebrequest

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#18253
Posted: 11/18/2011 15:09:15
by Aaron Nelson (Standard support level)
Joined: 11/18/2011
Posts: 1

Hi there -
I am switching over to using SBB from the standard .NET ftpwebrequest. So far, so good, but when I benchmarked it, SBB was taking 2X the time of ftpwebrequest.

I am downloading discrete files using Receive() (I cannot use GetFiles() because the files are processed in transit)

I tried setting the ftpBufferSize to 32767 and it didn't change performance.

Files are typically 5-50K in size and there are about 100 of them. Takes about 2 minutes to download via SBB, about 1 minute with ftpWebRequest.

Any suggestions?
#18254
Posted: 11/18/2011 15:22:31
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us.

There are many factors that affect transfer speed. The first and most straightforward solution of increasing the bandwidth is enabling compression (with the use of the ModeZ property).

Another fact is that FTP-over-SSL connections are always slower than plain FTP ones due to the need of performing SSL negotiation for each download. However, switching UseSSLSessionResumption on in this case may also result in speed increase.
#18255
Posted: 11/19/2011 01:13:11
by Eugene Mayevski (EldoS Corp.)

Also, I can be wrong, but for me it looks like *WebRequest are mappings of some unmanaged code, which is faster, than managed code (not much but still...)


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 1341 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!