Re: Why is --pretty=format: so slow?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 4, 2007, 04:22 UTC
- Message-ID
- <7vmytuvdvq.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <18221.16318.785162.44769@cargo.ozlabs.ibm.com>
Paul Mackerras <paulus@samba.org> writes:
> Strace seems to indicate that git log is doing at least one sequence > of open, fstat64, fcntl64, getdents64 and close for each line of > output in the --pretty=format: cases, but not in the other cases.
I bet that is coming from doing find_unique_abbrev() to fill fields %h, %t and %p, even when the output format does not ask for any of them.
Dscho, can we stop calling find_unique_abbrev() unconditionally before being asked?