]> git.ipfire.org Git - thirdparty/git.git/commit - sha1_file.c
[PATCH] Parallelize pulling by ssh
authorbarkalow@iabervon.org <barkalow@iabervon.org>
Tue, 2 Aug 2005 23:46:29 +0000 (19:46 -0400)
committerJunio C Hamano <junkio@cox.net>
Wed, 3 Aug 2005 05:53:11 +0000 (22:53 -0700)
commit70b9829ea73931f7e2f23fbe5f1853e0dca5ca12
treec740201e802d9723eb0d1606e778dbaab438bf2e
parent1e8be59d14f36128e5eb12cc0457e676bb79690c
[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>
cache.h
sha1_file.c
ssh-pull.c