Skip to content

`log -c` speedup

Kirill Smelkov git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4diffcore-order: Export generic ordering interfacediffcore-order.c diffcore.h+50 -180 replies
2/4diff test: Add tests for combine-diff with orderfilet/t4056-diff-order.sh+21 -00 replies
3/4combine-diff: Optimize combine_diff_path sets intersectioncombine-diff.c+72 -213 replies
4/4combine-diff: combine_diff_path.len is not needed anymorecombine-diff.c diff-lib.c diff.h+9 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] `log -c` speedup

Hello up there,

I'm using git log --raw to reconstruct file dates (readonly filesystem for git archives) and, as it turned out, for --raw to emit diffs for merges we need to explicitly activate combine-diff via -c.

The combined-diff turned out to be slow, I'm trying to optimize it. Please apply.

Thanks beforehand,
Kirill

Kirill Smelkov (4):
diffcore-order: Export generic ordering interface diff test: Add tests for combine-diff with orderfile
combine-diff: Optimize combine_diff_path sets intersection
combine-diff: combine_diff_path.len is not needed anymore

 combine-diff.c        | 121 +++++++++++++++++++++++++++++++++-----------------
 diff-lib.c            |   2 -
 diff.h                |   1 -
 diffcore-order.c      |  53 ++++++++++++++--------
 diffcore.h            |  15 +++++++
 t/t4056-diff-order.sh |  21 +++++++++
 6 files changed, 151 insertions(+), 62 deletions(-)
Signature · 1 line
1.9.rc0.143.g6fd479e