From: Linus Torvalds Date: Tue, 17 Apr 2007 16:03:44 GMT Subject: Re: [PATCH] refs.c: add a function to sort a ref list, rather then sorting on add Message-ID: In-Reply-To: <20070417014307.12486.28930.julian@quantumfyre.co.uk> On Tue, 17 Apr 2007, Julian Phillips wrote: > > 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. > > Signed-off-by: Julian Phillips Acked-by: Linus Torvalds Looks fine. I think that even your new times are a bit high (over two seconds?) but things are clearly better. Have you looked at what takes so long now? Linus