From: Ævar Arnfjörð Bjarmason Date: Thu, 27 Oct 2011 21:49:14 GMT Subject: Re: [PATCH 2/2] pack-objects: optimize "recency order" Message-ID: In-Reply-To: On Thu, Oct 27, 2011 at 23:01, Ævar Arnfjörð Bjarmason wrote: > I haven't dug into why this is but I'm pretty sure it's because this > patch makes Git behave pathologically on repositories with a large > amount of tags. git.git itself has ~27k revs / and ~450 tags, or a tag > every ~60 revisions. > > Try it on e.g. a repository with a couple of hundred thousand revs and > a tag every 10-20 revisions. Actually it just seems slow in general, not just on repositories with a lot of tags, on linux-2.6.git with this patch: $ time ~/g/git/git-pack-objects --keep-true-parents --honor-pack-keep --non-empty --all --reflog --delta-base-offs); print $sha if $i++ % 10 == 0' | parallel "git tag test-tag-{} {}" Resulting in: $ git rev-list HEAD | wc -l 269514 $ git tag -l | wc -l 13733 This'll be the time with this patch reverted, i.e. almost exactly the same as with just ~250 tags: real 0m52.860s user 0m44.907s sys 0m3.172s And with it applied, i.e. almost exactly the same as with just ~250 tags: real 1m29.080s user 1m21.825s sys 0m3.096s