[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 <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
barkalow@iabervon.org
2005-08-02 19:46:10 -04:00
committed by Junio C Hamano
parent 66e481b007
commit 1e8be59d14
5 changed files with 97 additions and 54 deletions

View File

@ -10,6 +10,10 @@ static int fd_out;
static unsigned char remote_version = 0;
static unsigned char local_version = 1;
void prefetch(unsigned char *sha1)
{
}
int fetch(unsigned char *sha1)
{
int ret;