From 1e8be59d14f36128e5eb12cc0457e676bb79690c Mon Sep 17 00:00:00 2001 From: "barkalow@iabervon.org" Date: Tue, 2 Aug 2005 19:46:10 -0400 Subject: [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 --- http-pull.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'http-pull.c') diff --git a/http-pull.c b/http-pull.c index bd6195537f..e70ab39c03 100644 --- a/http-pull.c +++ b/http-pull.c @@ -67,6 +67,10 @@ static size_t fwrite_sha1_file(void *ptr, size_t eltsize, size_t nmemb, return size; } +void prefetch(unsigned char *sha1) +{ +} + static int got_indices = 0; static struct packed_git *packs = NULL; -- cgit v1.3