Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Faster way to copy from US to china sever

by Illuminatus (Curate)
on Oct 15, 2012 at 21:12 UTC ( #999182=note: print w/replies, xml ) Need Help??

in reply to Faster way to copy from US to china sever

Everything that blue_cowdawg says is accurate. There are really only 2 ways that you could make things appreciably faster:
  1. compress the file before the copy, or use a copy method that compresses as it copies
  2. split the file into pieces, and do the transfer in parallel (and reassemble it afterwards). In some cases, a server won't allow a single connection to use more than a pre-set transfer limit, but will allow multiple connections that can sum to more than the single max rate. As blue_cowdawg also points out, this method won't help if some intervening hop ends up being the bottleneck
With no more info than 'a server in China', it's hard to be more specific. However, given the file size, and the likely sub-optimal transfer rate, it would be wise to use something like Net::FTPSSL, where the 'put' command allows you to pass an offset of -1, and it will attempt to resume where it left off.


  • Comment on Re: Faster way to copy from US to china sever

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999182]
choroba waits
[thepkd]: $aohoaoh ->{'foo'} has to be dereferenced to access its contents right?
[thepkd]: sorry. i mean $aohoaoh[0]
[GotToBTru]: $aohoaoh is an array reference tho
[thepkd]: some guy was suggesting $aohoaoh[0]->{'foo '}[0]->{}. This wouldnt work.
[GotToBTru]: you're mixing notation there I think

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2016-12-06 13:33 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (104 votes). Check out past polls.