author | Junio C Hamano <gitster@pobox.com> | |
Mon, 21 Mar 2011 04:52:44 +0000 (21:52 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 21 Mar 2011 04:53:25 +0000 (21:53 -0700) | ||
commit | 6afca450c3f2f05385900a7b8d3a0d47286f983f | |
tree | a090f14d020f7835668d94801f20f12315c8986e | tree | snapshot |
parent | c12f5917e4f528b056a8b9ca625397aee97ae1e4 | commit | diff |
fetch-pack: progressively use larger handshake windows
The client has to dig the history deeper when more recent parts of its
history do not have any overlap with the server it is fetching from. Make
the handshake window exponentially larger as we dig deeper, with a
reasonable upper cap.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Shawn Pearce <spearce@spearce.org>
The client has to dig the history deeper when more recent parts of its
history do not have any overlap with the server it is fetching from. Make
the handshake window exponentially larger as we dig deeper, with a
reasonable upper cap.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Shawn Pearce <spearce@spearce.org>
builtin/fetch-pack.c | diff | blob | history |