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

Re: [PATCH] xdiff: disable cleanup_records heuristic with --minimal

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 28, 2025, 17:05 UTC
Message-ID
<xmqq4iy8dxo2.fsf@gitster.g>
In-Reply-To
<f3140b32-5a25-448b-a99c-1604f6237cb8@campus.lmu.de>
Niels Glodny <n.glodny@campus.lmu.de> writes:
Show 17 quoted lines
> Hi Phillip,
>
> thank you for your detailed comments.
>
>> Have you got any numbers for the performance change?
>
> I have been using "git log -p -3000 --minimal > /dev/null", as in
> p4000-diff-algorithms.sh. With this patch, I get
>
>   Time (mean ± σ):      2.363 s ±  0.023 s (25 runs)
>
> Without this patch, I get
>
>   Time (mean ± σ):      2.362 s ±  0.035 s  (25 runs)
>
> So the difference is well within the margin of error. It doesn't
> look like it has any measurable impact on performance.

That is an excellent observation and result. It should be added to the proposed commit log message, if not already. The commit log is where you answer questions, similar to what were raised during review by your reviewers, that future readers of "git log -p" would have about your change. For them you won't be easily available to answer their questions, and that is why we stress on the need for well-written commit log messages.

Thanks.
Previous: Niels GlodnyNext: Niels Glodny
Message 4 of 9 in “xdiff: disable cleanup_records heuristic with --minimal”
  1. xdiff: disable cleanup_records heuristic with --minimalNiels Glodny, Apr 25, 2025
  2. Phillip WoodApr 27, 2025
  3. Niels GlodnyApr 27, 2025
  4. Junio C HamanoApr 28, 2025
  5. xdiff: disable cleanup_records heuristic with --minimalNiels Glodny, Apr 27, 2025
  6. Phillip WoodApr 29, 2025
  7. xdiff: disable cleanup_records heuristic with --minimalNiels Glodny, Apr 29, 2025
  8. Phillip WoodMay 6, 2025
  9. Junio C HamanoMay 6, 2025

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.