Re: [PATCH] Implement limited context matching in git-apply.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mon, 10 Apr 2006, Eric W. Biederman wrote:
> 
> If I just loop through all of Andrews patches in order
> and run git-apply --index -C1 I process the entire patchset
> in 1m53s or about 6 patches per second.  So running
> git-mailinfo, git-write-tree, git-commit-tree, and
> git-update-ref everytime has a measurable impact,
> and shows things can be speeded up even more.

git-write-tree is actually a fairly expensive operation on the kernel. It 
needs to write the 1000+ tree objects - and while _most_ of them already 
exist (and thus don't actually need to be written out), we need to 
generate the tree object and its SHA1 in order to notice that that is the 
case.

I'm almost certain that 90%+ of the overhead you see is the tree writing, 
not the rest of the scripting.

Your patch looks ok from a quick read-through:

Acked-by: Linus Torvalds <torvalds@xxxxxxxx>

		Linus
-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]