svn - but smaller?
jcm at visi.com
Fri Feb 1 17:27:27 UTC 2013
On Wed, 30 Jan 2013 13:47:52 +0100
Arrigo Marchiori <ardovm at yahoo.it> wrote:
> On Tue, Jan 29, 2013 at 11:48:31AM -0500, Isaac (.ike)
> I tried the attached script to download
> http://svn.freebsd.org/base/stable/9/ In 27 minutes it
> megabytes, corresponding to 42 KByte/sec, through an
>ADSL link capable
> of roughly 400 KByte/sec. Then I stopped it.
> IMHO this should demonstrate that the problem is not
>only having a
> SVN workalike, but a fast and efficient one.
I've got a "working" solution now. I put working in quotes because I'm
seeing similar dismal performance stats to your script (I also have ~
400 KB/s DSL connection). The problem appears to be with the overhead
of sending and receiving all of the ~ 100 byte requests to both get the
MD5 signatures and to get the files themselves (large files transfer
*very* quickly and I'm not using poll() to check if there's data to be
read on the socket).
I've got two bugs left to squash and I'll post the source code for
everyone to review.
I know you can issue more that one command at a time and my next hurdle
will be working on speeding things up by combining requests for all
files in each folder instead of issuing one request for each file.
More information about the freebsd-stable