From: Julian Phillips Date: Tue, 27 Sep 2011 09:01:56 GMT Subject: Re: Git is not scalable with too many refs/* Message-ID: <22f055b34840e3c64f3339f7b3dc6920@quantumfyre.co.uk> In-Reply-To: On Tue, 27 Sep 2011 10:20:29 +0200, Sverre Rabbelier wrote: > Heya, > > On Tue, Sep 27, 2011 at 01:26, Julian Phillips > wrote: >> Back when I made that change, I failed to notice that get_ref_dir >> was >> recursive for subdirectories ... sorry ... >> >> Hopefully this should speed things up.  My test repo went from ~17m >> user >> time, to ~2.5s. >> Packing still make things much faster of course. > > Can we perhaps also have some tests to prevent this from happening > again? Um ... any suggestion what to test? It has to be hot-cache, otherwise time taken to read the refs from disk will mean that it is always slow. On my Mac it seems to _always_ be slow reading the refs from disk, so even the "fast" case still takes ~17m. Also, what counts as ok, and what as broken? -- Julian