[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:

committed by
Junio C Hamano

parent
66e481b007
commit
1e8be59d14
@ -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;
|
||||
|
Reference in New Issue
Block a user