Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Net::FTP speed

by moklevat (Priest)
on Mar 29, 2007 at 14:47 UTC ( [id://607278]=note: print w/replies, xml ) Need Help??


in reply to Net::FTP speed

Hello Anonymonk,

Have you actually compared the rate of your script's file transfers to file transfers using ftp from the command line? Regardless of the size of your local pipe (it's all pipes isn't it?), the rate of the transfer may be limited by a high load on the remote server or bandwidth constraints somewhere upstream.

Having said that, if the local and remote machines use the same type of line ending, you may see some speed-up from using binary mode (i.e. no transformation of the data being transmitted).

$ftp->binary() or die "Cannot change to binary mode";

Perhaps some other monk has some insight into whether futzing with the block size would make any difference.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://607278]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-16 21:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found