You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FTP download rate for a large file is slow compared to HTTP, which should not generally be the case.
Looking at the code for Get-FtpFile, I speculate that the small buffer size is to blame. For similar functionality I've found that a much larger buffer is more efficient -- 256Kb-512Kb. There are diminishing returns with increasing buffer size that testing will soon show.
What is Expected?
FTP should be as fast if not faster than HTTP.
How Did You Get This To Happen? (Steps to Reproduce)
Downloaded a large from from a local FTP server via Get-FtpFile
Output Log
No pertinent information to share
The text was updated successfully, but these errors were encountered:
Buffer size changes from 1KiB to 1MiB. This will make FTP downloads more
performant, and shift the `Get-FtpFile` implementation to match
`Get-WebFile`.
ferventcoder
changed the title
Get-FtpFile downloads are slow, possibly because of the use of a 1Kb download buffer
Increase download buffer size in Get-FtpFile to speed up downloads
Mar 23, 2017
What You Are Seeing?
The FTP download rate for a large file is slow compared to HTTP, which should not generally be the case.
Looking at the code for
Get-FtpFile
, I speculate that the small buffer size is to blame. For similar functionality I've found that a much larger buffer is more efficient -- 256Kb-512Kb. There are diminishing returns with increasing buffer size that testing will soon show.What is Expected?
FTP should be as fast if not faster than HTTP.
How Did You Get This To Happen? (Steps to Reproduce)
Downloaded a large from from a local FTP server via
Get-FtpFile
Output Log
No pertinent information to share
The text was updated successfully, but these errors were encountered: