From: Nguyen Thai Ngoc Duy Date: Fri, 17 Dec 2010 13:01:41 GMT Subject: Re: Performance issue exposed by git-filter-branch Message-ID: In-Reply-To: <41C1B4AC-8427-4D62-BEB6-689A4BE4EE5B@irridia.com> On Fri, Dec 17, 2010 at 8:07 AM, Ken Brownfield wrote: > cache_name_compare (and the presumed follow-ons of memcpy/sha/malloc/etc) is the major consumer. Other people have given you alternative approaches. I'm just wondering if we can improve something here. cache_name_compare() is essentially memcmp() on two full paths. A tree-based index might help. How long are your file names on average? Are your trees deep? -- Duy