mbox series

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

Message ID 20190821110424.18184-1-szeder.dev@gmail.com
Headers show
Series line-log: avoid unnecessary full tree diffs | expand

Message

SZEDER Gábor Aug. 21, 2019, 11:04 a.m. UTC
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(-)