On Sat, 11 Aug 2007, Junio C Hamano wrote:I'd love to see this, because it would likely speed up merging of really big trees by a huge amount, and because I think it's fundamentally the "right thing(tm)" to do. That said, right now we do so well that it's almost not interesting. The kernel tree is so small as to merge in basically zero time even when you do per-file merges, and generatign the diffstat is almost always the biggest component of the merge by far. But yes, for bigger trees, and just because it's the right thing to do considering the data structures we have, we really should plan on doing that some day. I think that with the current optimizations (and at least with current hardware - old hw might change the equation), based on my timings on the "bummer" tree, are fine at _least_ to 100,000 files. But if we're talking about slower hardware, or many more files than that, we should _definitely_ eventually do the tree-based optimizations. Yeah. "git diff" is just about the most performance-critical one. That said, the "--cached" case is likely the least used one, and any time you don't use that, you end up having to lstat() the files anyway, so you cannot do the tree-based optimizations ;^p But it would help "git status", I think (which needs to do both --cached and the normal one). Linus - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Andi Kleen | [PATCH x86] [0/16] Various i386/x86-64 changes |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Linus Torvalds | Re: [GIT]: Networking |
| Jeff Kirsher | [net-next PATCH 1/7] e1000e: enable CRC stripping by default |
| Jukka Andberg | ata/wdc vs gcc3 on amiga |
| YAMAMOTO Takashi | Re: wd.c patch to reduce kernel stack usage |
| Jason Thorpe | Re: ksyms patches. |
| rick | NFS transport |
