author | barkalow@iabervon.org <barkalow@iabervon.org> | |
Tue, 2 Aug 2005 23:46:29 +0000 (19:46 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 3 Aug 2005 05:53:11 +0000 (22:53 -0700) | ||
commit | 70b9829ea73931f7e2f23fbe5f1853e0dca5ca12 | |
tree | c740201e802d9723eb0d1606e778dbaab438bf2e | tree | snapshot |
parent | 1e8be59d14f36128e5eb12cc0457e676bb79690c | commit | diff |
[PATCH] Parallelize pulling by ssh
This causes ssh-pull to request objects in prefetch() and read then in
fetch(), such that it reduces the unpipelined round-trip time.
This also makes sha1_write_from_fd() support having a buffer of data
which it accidentally read from the fd after the object; this was
formerly not a problem, because it would always get a short read at
the end of an object, because the next object had not been
requested. This is no longer true.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This causes ssh-pull to request objects in prefetch() and read then in
fetch(), such that it reduces the unpipelined round-trip time.
This also makes sha1_write_from_fd() support having a buffer of data
which it accidentally read from the fd after the object; this was
formerly not a problem, because it would always get a short read at
the end of an object, because the next object had not been
requested. This is no longer true.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h | diff | blob | history | |
sha1_file.c | diff | blob | history | |
ssh-pull.c | diff | blob | history |