summaryrefslogtreecommitdiff
path: root/tar.h
diff options
context:
space:
mode:
authorJulian Phillips <julian@quantumfyre.co.uk>2007-04-17 02:42:50 +0100
committerJunio C Hamano <junkio@cox.net>2007-04-18 16:20:57 -0700
commitc774aab98ce6c5ef7aaacbef38da0a501eb671d4 (patch)
treea3b39d2c91b4a506b9d490ead8faf0b812096ab1 /tar.h
parent6fb8e8f401a065bdffe379764871551e37a041a0 (diff)
downloadgit-c774aab98ce6c5ef7aaacbef38da0a501eb671d4.tar.gz
refs.c: add a function to sort a ref list, rather then sorting on add
Rather than sorting the refs list while building it, sort in one go after it is built using a merge sort. This has a large performance boost with large numbers of refs. It shouldn't happen that we read duplicate entries into the same list, but just in case sort_ref_list drops them if the SHA1s are the same, or dies, as we have no way of knowing which one is the correct one. Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'tar.h')
0 files changed, 0 insertions, 0 deletions