summaryrefslogtreecommitdiff
path: root/builtin/commit-tree.c
diff options
context:
space:
mode:
authorMeet Soni <meetsoni3017@gmail.com>2025-02-14 10:11:29 +0530
committerJunio C Hamano <gitster@pobox.com>2025-02-13 21:33:00 -0800
commitb07dd9078b8ba5f3b7f5c88f84f7ee9c34fa65e1 (patch)
tree67c9dbfe2caf17a70870bebd1ee2cc49085635dc /builtin/commit-tree.c
parente2067b49ecaef9b7f51a17ce251f9207f72ef52d (diff)
merge-recursive: optimize time complexity for process_renames
Avoid O(n^2) complexity in `process_renames()` when building a sorted `string_list` by constructing it unsorted and sorting it afterward, reducing the complexity to O(n log n). Signed-off-by: Meet Soni <meetsoni3017@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-tree.c')
0 files changed, 0 insertions, 0 deletions