Re: git fetch slow as molasses due to tag downloading
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Dec 15, 2006, 22:27 UTC
- Message-ID
- <elv7av$n0$1@sea.gmane.org>
- In-Reply-To
- <7vtzzwn7su.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 23 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes: > >> IMHO this should be solved as a filter: "git-show-ref --stdin >> --show-invalid". Thus, git does not have to traverse _every_ ref for >> _every_ incoming tag. > > That sounds like a too specialized hack to me. We should first > speed up the general "--verify $ref" case; as you corrected me > earlier it still has a useless loop. > > If it is still too slow (which I suspect it could be the case, > with fork+exec overhead), we should _also_ pursue the filter > approach, but even then I think "filter out the valid ones" is a > specialized hack, if you mean "show only the invalid one's > names" by --show-invalid. > > It would make sense to do > > $ git show-ref --show-invalid v1.0.0 v2.6.18 > f665776185ad074b236c00751d666da7d1977dbe refs/tags/v1.0.0 > - refs/tags/v2.6.18 > > (and its equivalent to take refs from --stdin) though.
Nice idea. And having '-' is probably better than using 00000000000000000000000000000000000000000 as for non-existing objects.
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git