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

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

From
Niels Glodny <n.glodny@campus.lmu.de>
Date
Apr 27, 2025, 21:44 UTC
Message-ID
<f3140b32-5a25-448b-a99c-1604f6237cb8@campus.lmu.de>
In-Reply-To
<23078e29-8f1f-4eb3-be71-7ef419252bab@gmail.com>
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.
> I think the premise of this patch is sound, I've left a couple of comments below as I think we can simplify the code changes.
Thanks a lot! I'll apply your suggestions and send a revised version shortly.
Regards,
Niels
Previous: Phillip WoodNext: Junio C Hamano
Message 3 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.