Re: Poor performance of git describe in big repos
- From
Antoine Pelisse <apelisse@gmail.com>
- Date
- May 30, 2013, 19:01 UTC
- Message-ID
- <CALWbr2xd4k_P6KUQOcRJotWj3=DfJNnhL4rsGSw0yE+53gdyWw@mail.gmail.com>
- In-Reply-To
- <87bo7sbeoc.fsf@linux-k42r.v.cablecom.net>
> The culprit, according to some callgrind investigation, is > lookup_commit_reference_gently() [for the unannotated case] or > deref_tag() [annotated case] calling parse_object().
Using the scenario you described earlier, I think it ends-up spending most of its time in check_sha1_signature (both deref_tag and lookup_commit_reference_gently() go there) with 20% inflating, 80% in SHA1_Update(). Not much we can do about that, can we ?