Commit 1ca727f
commit: avoid parent list buildup in clear_commit_marks_many()
clear_commit_marks_1() clears the marks of the first parent and its
first parent and so on, and saves the higher numbered parents in a list
for later. There is no benefit in keeping that list growing with each
handled commit. Clear it after each run to reduce peak memory usage.
Signed-off-by: René Scharfe <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 2d2a71c commit 1ca727f
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
783 | | - | |
784 | | - | |
785 | 783 | | |
| 784 | + | |
| 785 | + | |
786 | 786 | | |
| 787 | + | |
| 788 | + | |
787 | 789 | | |
788 | 790 | | |
789 | | - | |
790 | | - | |
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
| |||
0 commit comments