diffcore-delta: make the hash a bit denser.
To reduce wasted memory, wait until the hash fills up more densely before we rehash. This reduces the working set size a bit further. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -307,8 +307,8 @@ void diffcore_rename(struct diff_options *options)
|
||||
m->score = estimate_similarity(one, two,
|
||||
minimum_score);
|
||||
}
|
||||
free(two->cnt_data);
|
||||
two->cnt_data = NULL;
|
||||
/* We do not need the text anymore */
|
||||
diff_free_filespec_data(two);
|
||||
dst_cnt++;
|
||||
}
|
||||
/* cost matrix sorted by most to least similar pair */
|
||||
|
Reference in New Issue
Block a user