fetch: Speed up fetch of large numbers of refs
authorJulian Phillips <julian@quantumfyre.co.uk>
Sun, 25 Oct 2009 21:28:12 +0000 (21:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Oct 2009 06:38:46 +0000 (23:38 -0700)
When there are large numbers of refs, calling read_ref for each ref is
inefficent (and infact downright slow) - so instead use for_each_ref
to build up a string list of all the refs that we currently have,
which significantly improves the volume.

Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found