From: Junio C Hamano Date: Sun, 21 Jun 2026 20:24:53 GMT Subject: Re: git-diff in a worktree is an order of magnitude slower? Message-ID: In-Reply-To: <20260621174518.GB2206349@coredump.intra.peff.net> Jeff King writes: > I don't know if any of this is really worth digging too far. This feels > like a case we could do a bit better at, but I wonder how much it > matters in practice. As soon as you do any index-refresh (including "git > status"), the racy entries are cleared and everything is faster. It > just seems kind of lame that we write out the initial working tree with > so many racy entries. Yeah, We didn't want to stall for a full second back when we were not using subsecond in anywhere, with nanosecond resolution timestamps in place, we could delay writing the index file by 50 milliseconds, nobody notices the delay, and raciness would go away, perhaps?