From: Junio C Hamano Date: Thu, 20 Jun 2024 21:02:30 GMT Subject: Re: [PATCH 0/5] sparse-index: improve clear_skip_worktree_from_present_files() Message-ID: In-Reply-To: <77974c37-b82f-42fb-848f-e060495c4f49@gmail.com> Derrick Stolee writes: > But what you are really asking is how close this is to the optimal. > I didn't include that in Patch 5 details, but I was able to look at > my notes and see that the sparse_path_count data point was 1,962, > meaning there are that many sparse trees in the sparse index before > expanding. Thus, the 6,521 lstat() calls are 3.3x more than the > absolute minimum required. Nice, and still impressive. Thanks.