On Sat, Nov 08, 2008 at 07:00:10PM +0700, Nguyen Thai Ngoc Duy wrote:Hmm, yeah. I was thinking you might be able to do some kind of cut-off on the caching (i.e., don't bother storing anything that didn't come close). But you can't safely assume that because an entry isn't there, it isn't worth seeing (since it might also just not have been computed yet). You could still organize by commit, and then each commit is either fully computed or not. But then you still have a pathspec problem. One thing you could do is just compute the rename score between all pairs, even if a pathspec is given, limit it to values over "0.5" (or something low, but that eliminates the totally uninteresting cases), and then store that as the complete cache for that commit (or tree pair, if you want to support that). Then you would have the full information and could do an arbitrary pathspec limit on it. If you wanted to set the rename threshold below 0.5, then we would have to recompute without the cache (but in practice, that should be rare). The real downside is that you pay for the whole-tree detection when you have asked for a pathspec (but only the first time, after which you can always generate from cache). Just thinking out loud... -Peff -- 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
| Justin C. Sherrill | Re: pkgsrc bulk build and tiff |
| Linus Torvalds | Linux 2.6.27-rc5 |
| Ingo Molnar | [crash, bisected] Kernel BUG at ffffffff8079afb1 (__netif_schedule()) |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Evgeniy Polyakov | Re: tbench wrt. loopback TSO |
