path: root/local-pull.c
diff options
mode: <>2005-08-02 23:46:10 (GMT)
committerJunio C Hamano <>2005-08-03 05:53:09 (GMT)
commit1e8be59d14f36128e5eb12cc0457e676bb79690c (patch)
tree3fa313f2f2ce5e0958010d133e5434012d0033f2 /local-pull.c
parent66e481b007e843be54b9ff6a4be6e139c103a695 (diff)
[PATCH] Parallelize the pull algorithm
This processes objects in two simultaneous passes. Each object will first be given to prefetch(), as soon as it is possible to tell that it will be needed, and then will be given to fetch(), when it is the next object that needs to be parsed. Unless an implementation does something with prefetch(), this should have no effect. Signed-off-by: Daniel Barkalow <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'local-pull.c')
1 files changed, 4 insertions, 0 deletions
diff --git a/local-pull.c b/local-pull.c
index 29ae166..b715203 100644
--- a/local-pull.c
+++ b/local-pull.c
@@ -11,6 +11,10 @@ static int use_filecopy = 1;
static char *path; /* "Remote" git repository */
+void prefetch(unsigned char *sha1)
int fetch(unsigned char *sha1)
static int object_name_start = -1;