Re: [RFC/PATCH] shortstatus v1
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 10, 2009, 23:05 UTC
- Message-ID
- <7v3aellwoa.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20090210225539.GC26954@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> So untracked_files is definitely the worst, but I was surprised that > the index to HEAD diff takes so long.
There is an obvious optimization you can do to "diff-index --cached" using cache-tree. If your index is really clean, computing the tree object the index would represent (without writing the tree object out) and comparing it against HEAD^{tree} may be a tad faster.