Re: [PATCH 1/2] diffcore-rename: support rename cache

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Yann Dirson <ydirson@...>
Cc: Nguyen Thai Ngoc Duy <pclouds@...>, Junio C Hamano <gitster@...>, <git@...>
Date: Saturday, November 8, 2008 - 7:47 am

On Sat, Nov 08, 2008 at 10:24:10AM +0100, Yann Dirson wrote:


One thing I notice is that the cache works at the level of "here is the
best rename for this commit." Maybe it could go down a level and say
"here is the inexact rename score between these blobs". Then you would
still find the best score between two blobs each time, but save the
really computationally intensive part (which is comparing the actual
_content_ of the blobs).

That should work in the face of path limiting or any other option,
because it is caching something immutable: this is the similarity score
between two pieces of content. And then you get arbitrary tree-to-tree
speedups for free, since such a cache would be valid for every commit.

The downsides are:

 - your cache is potentially bigger, since you are caching the score of
   every pair you look at, instead of just "good" pairs (OTOH, you are
   not doing a per-commit cache, which helps reduce the size)

 - you can still "lie" about a score to pre-seed imported SVN renames,
   but such lying will actually apply to all commits.

-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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] diffcore-rename: support rename cache, Nguyễn Thái Ngọc Duy..., (Fri Nov 7, 10:35 am)
Re: [PATCH 1/2] diffcore-rename: support rename cache, Junio C Hamano, (Fri Nov 7, 7:17 pm)
Re: [PATCH 1/2] diffcore-rename: support rename cache, Nguyen Thai Ngoc Duy, (Sat Nov 8, 12:01 am)
Re: [PATCH 1/2] diffcore-rename: support rename cache, Jeff King, (Sat Nov 8, 7:47 am)
Re: [PATCH 1/2] diffcore-rename: support rename cache, Nguyen Thai Ngoc Duy, (Sat Nov 8, 8:00 am)
Re: [PATCH 1/2] diffcore-rename: support rename cache, Nguyen Thai Ngoc Duy, (Sat Nov 8, 5:29 am)
[PATCH 2/2] diffcore-rename: add config option to allow to c..., Nguyễn Thái Ngọc Duy..., (Fri Nov 7, 10:35 am)