Re: git and larger trees, not so fast?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 9, 2007, 21:37 UTC
- Message-ID
- <7vy7gkwfsi.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20070809165218.9b76ebf7.seanlkml@sympatico.ca>
Sean <seanlkml@sympatico.ca> 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.