From: Junio C Hamano Date: Thu, 09 Aug 2007 21:37:17 GMT Subject: Re: git and larger trees, not so fast? Message-ID: <7vy7gkwfsi.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20070809165218.9b76ebf7.seanlkml@sympatico.ca> Sean writes: > This makes things _much_ better, however the final commit in the > test script still shows a lot of user time: I really do not have time to look into this for now until late in the evening, but it is not surprising at all that per-path partial commit is _always_ slower than the whole tree commit. It simply needs to do _extra_ work, such as (1) re-initializing a temporary index from the tree, (2) add the named entries to that temporary index, and (3) add the same named entries to the real index. After that it writes a tree out of the temporary index but the cost for that is the same as writing out of the real index that is done for the normal commit.