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

[PATCH 0/2] line-log: avoid unnecessary full tree diffs

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Aug 21, 2019, 11:04 UTC
Message-ID
<20190821110424.18184-1-szeder.dev@gmail.com>

Line-level log can be very slow with rename detection enabled (and its enabled by default), which is caused by it using the diff machinery very inefficiently. The second patch fixes the issue and make it much faster, especially in large repositories.

This patch series is independent from my other patch series making line-level log incremental [1]. The two can be merged easily, as the changes to 'line-log.c' don't overlap, and the conflict in 't4211-line-log.sh' is trivial (both series add new tests at the end of that test script).

[1] https://public-inbox.org/git/6a576e13-79e6-43be-c4a8-065e7a8310ea@gmail.com/T/
SZEDER Gábor (2):
  line-log: extract pathspec parsing from line ranges into a helper
    function
  line-log: avoid unnecessary full tree diffs
 line-log.c          | 71 ++++++++++++++++++++++++++++-----------
 t/t4211-line-log.sh | 82 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 134 insertions(+), 19 deletions(-)
-- 
2.23.0.352.gebb2b55eae
Next: SZEDER Gábor
Message 1 of 13 in “line-log: avoid unnecessary full tree diffs”
  1. 0/2 line-log: avoid unnecessary full tree diffsSZEDER Gábor, Aug 21, 2019
  2. 1/2 line-log: extract pathspec parsing from line ranges into a helper functionSZEDER Gábor, Aug 21, 2019
  3. 2/2 line-log: avoid unnecessary full tree diffsSZEDER Gábor, Aug 21, 2019
  4. Derrick StoleeAug 21, 2019
  5. SZEDER GáborAug 21, 2019
  6. Derrick StoleeAug 21, 2019
  7. SZEDER GáborAug 22, 2019
  8. Derrick StoleeAug 22, 2019
  9. Junio C HamanoAug 22, 2019
  10. SZEDER GáborAug 22, 2019
  11. Derrick StoleeAug 22, 2019
  12. SZEDER GáborAug 23, 2019
  13. Junio C HamanoAug 21, 2019

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.