Re: Git is not scalable with too many refs/*
- From
Julian Phillips <julian@quantumfyre.co.uk>
- Date
- Sep 27, 2011, 09:01 UTC
- Message-ID
- <22f055b34840e3c64f3339f7b3dc6920@quantumfyre.co.uk>
- In-Reply-To
- <CAGdFq_hvR1MPF33YFcjDCzCM0iOO2zpiiePFFS4dBabu84cwTg@mail.gmail.com>
On Tue, 27 Sep 2011 10:20:29 +0200, Sverre Rabbelier wrote:
Show 15 quoted lines
> Heya, > > On Tue, Sep 27, 2011 at 01:26, Julian Phillips > <julian@quantumfyre.co.uk> 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