diff options
author | Junio C Hamano <junkio@cox.net> | 2006-03-12 16:39:51 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-03-12 17:26:32 -0800 |
commit | 2821104db7fabdfac105ae757228b0eac107047c (patch) | |
tree | fb827c04ddc2c38c6d31a5313fd2ddd91c477e9a /diffcore-rename.c | |
parent | c06c79667c9514aed00d29bcd80bd0cee7cc5a25 (diff) | |
download | git-2821104db7fabdfac105ae757228b0eac107047c.tar.gz git-2821104db7fabdfac105ae757228b0eac107047c.tar.xz |
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>
Diffstat (limited to 'diffcore-rename.c')
-rw-r--r-- | diffcore-rename.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/diffcore-rename.c b/diffcore-rename.c index b80b4320f..ed99fe2cc 100644 --- a/diffcore-rename.c +++ b/diffcore-rename.c @@ -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 */ |