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:
Junio C Hamano
2006-03-12 16:39:51 -08:00
parent c06c79667c
commit 2821104db7
2 changed files with 11 additions and 6 deletions

View File

@ -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 */