git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Re* [BUG-ish] diff compaction heuristic false positive

From
Jeff King <peff@peff.net>
Date
Jun 10, 2016, 20:30 UTC
Message-ID
<20160610203026.GA21464@sigill.intra.peff.net>
In-Reply-To
<xmqqeg84gbex.fsf_-_@gitster.mtv.corp.google.com>
On Fri, Jun 10, 2016 at 11:13:10AM -0700, Junio C Hamano wrote:
Show 16 quoted lines
> Jacob Keller <jacob.keller@gmail.com> writes:
> 
> > I think we could use the indentation trick and it might help in this
> > case. I agree, let's disable this for this cycle and experiment in the
> > next one. Good catch, Peff.
> >
> > As others have said you will always be able to produce counter
> > examples, that's the nature of heuristics. The idea is to see if we
> > can come up with something simple that mostly improves the output,
> > even if sometimes it might have a negative impact on the outputs. But
> > I think we should avoid changing behavior unless it's mostly an
> > improvement.
> 
> OK, let's do this then for the upcoming release for now.  I am
> tempted to flip it back on after the release in 'next', so that
> developers would be exposed to the heuristic by default, though.

Thanks for the patch, and I agree flipping it back on in "next" is a good idea.

It may be that I am making a fuss over nothing. As you say, we always knew that it might have false positives. Mostly I was just surprised how frequent they were in this example (I also wondered why the same pattern did not trigger in the C code we looked at).

> -- >8 --
> Subject: [PATCH] diff: disable compaction heuristic for now
Looks good.

We probably want a patch to the release notes to note that it's not on by default. And we may want to advertise the experimental knob so that people actually try it (otherwise we won't get feedback from the masses).

-Peff
Previous: Stefan BellerNext: Junio C Hamano
Message 8 of 16 in “[BUG-ish] diff compaction heuristic false positive”
  1. Jeff KingJun 10, 2016
  2. Jeff KingJun 10, 2016
  3. Junio C HamanoJun 10, 2016
  4. Stefan BellerJun 10, 2016
  5. Jacob KellerJun 10, 2016
  6. Re* [BUG-ish] diff compaction heuristic false positiveJunio C Hamano, Jun 10, 2016
  7. Stefan BellerJun 10, 2016
  8. Jeff KingJun 10, 2016
  9. diff: disable compaction heuristic for nowJunio C Hamano, Jun 10, 2016
  10. Jeff KingJun 10, 2016
  11. Junio C HamanoJun 10, 2016
  12. Jeff KingJun 10, 2016
  13. Junio C HamanoJun 10, 2016
  14. Michael HaggertyJun 10, 2016
  15. Jeff KingJun 10, 2016
  16. Michael HaggertyJun 10, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.