Re: Git is not scalable with too many refs/*
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Sep 26, 2011, 16:25 UTC
- Message-ID
- <201109261825.39831.trast@student.ethz.ch>
- In-Reply-To
- <201109260942.08299.mfick@codeaurora.org>
Martin Fick wrote:
Show 6 quoted lines
> > I suspect that there are several commands in git > which inadvertently scan all the refs when they probably > shouldn't. [...] I feel like git checkout is one of those cases, > it does not seem like git checkout should be affected by the > number of refs in a repo?
git-checkout checks whether you are leaving any unreferenced (orphaned) commits behind when you leave a detached HEAD, which requires that it scan the history of all refs for the commit you just left.
So unless you disable that warning it'll be pretty expensive regardless.
--
Thomas Rast
trast@{inf,student}.ethz.ch