summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorLibravatar Julian Phillips <julian@quantumfyre.co.uk>2011-09-27 01:00:09 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-09-26 18:30:38 -0700
commitb4f223c6367bb7aefa00c746c808f5afa7b85331 (patch)
treea2b48efb2e16f45ae72b6535e661708942b81484 /remote.c
parentGit 1.7.4 (diff)
downloadtgif-b4f223c6367bb7aefa00c746c808f5afa7b85331.tar.xz
Don't sort ref_list too early
get_ref_dir is called recursively for subdirectories, which means that we were calling sort_ref_list for each directory of refs instead of once for all the refs. This is a massive wast of processing, so now just call sort_ref_list on the result of the top-level get_ref_dir, so that the sort is only done once. In the common case of only a few different directories of refs the difference isn't very noticable, but it becomes very noticeable when you have a large number of direcotries containing refs (e.g. as created by Gerrit). Reported by Martin Fick. Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.c')
0 files changed, 0 insertions, 0 deletions