From: Junio C Hamano Date: Tue, 10 Feb 2009 23:05:57 GMT Subject: Re: [RFC/PATCH] shortstatus v1 Message-ID: <7v3aellwoa.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20090210225539.GC26954@coredump.intra.peff.net> Jeff King 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.