From: "Andy C" <andychup@gmail.com>
To: "Jeff King" <peff@peff.net>
Cc: "Linus Torvalds" <torvalds@linux-foundation.org>,
git@vger.kernel.org, "Junio C Hamano" <gitster@pobox.com>
Subject: Re: [PATCH/RFC 0/3] faster inexact rename handling
Date: Tue, 30 Oct 2007 17:27:10 -0700 [thread overview]
Message-ID: <596909b30710301727o72770d51jfa519d858203480f@mail.gmail.com> (raw)
In-Reply-To: <20071030202014.GA22733@coredump.intra.peff.net>
On 10/30/07, Jeff King <peff@peff.net> wrote:
> On Tue, Oct 30, 2007 at 08:38:24AM -0700, Linus Torvalds wrote:
>
> > > with the old and new code. Pairs like Documentation/git-add-script.txt
> > > -> Documentation/git-add.txt are not found, because the file is composed
> > > almost entirely of boilerplate.
> >
> > Ok, that does imply to me that we cannot just drop boilerplate text,
> > because the fact is, lots of files contain boilerplate, but people still
> > think they are "similar".
>
> Well, the problem is that instead of just "dropping" boilerplate text,
> we fail to count it as a similarity, but it still counts towards the
> file size. It may be that just dropping it totally is the right thing
> (in which case those renames _will_ turn up, because they will be filled
> with identical non-boilerplate goodness).
Right, in the demo I make an extra pass after the inverted indexing
step to prune the index -- which means eliminating the common lines
*entirely* from the index (so they don't get attributed to a random
file) *and* decrementing all the file sizes by 1. That way the
similarity scores shouldn't get skewed.
And as you mentioned we could bump the threshold from 1 to some other
small integer. Intuitively I guess you could say it is common to copy
a file to 2 places or 3 places, and you don't want all the lines to
get thrown out because of that. But usually you don't copy a file to
10 or 50 places.
Andy
next prev parent reply other threads:[~2007-10-31 0:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-30 4:21 [PATCH/RFC 0/3] faster inexact rename handling Jeff King
2007-10-30 4:23 ` [PATCH/RFC 1/3] change hash table calling conventions Jeff King
2007-10-30 4:24 ` [PATCH/RFC 2/3] introduce generic similarity library Jeff King
2007-10-30 4:24 ` [PATCH/RFC 3/3] handle renames using similarity engine Jeff King
2007-10-30 5:06 ` [PATCH/RFC 0/3] faster inexact rename handling Linus Torvalds
2007-10-30 8:29 ` Junio C Hamano
2007-10-30 13:46 ` Jeff King
2007-10-30 13:43 ` Jeff King
2007-10-30 15:38 ` Linus Torvalds
2007-10-30 20:20 ` Jeff King
2007-10-30 20:39 ` Linus Torvalds
2007-10-31 0:27 ` Andy C [this message]
2007-10-31 0:06 ` Andy C
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=596909b30710301727o72770d51jfa519d858203480f@mail.gmail.com \
--to=andychup@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).