diff options
author | Junio C Hamano <junkio@cox.net> | 2006-03-12 03:22:10 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-03-12 03:22:10 -0800 |
commit | c06c79667c9514aed00d29bcd80bd0cee7cc5a25 (patch) | |
tree | 75549257a77d8d32859a1128f5d01dce31dd5a3b /diffcore.h | |
parent | ce2a34188b70c2d04ffdc1d9d3acc04d7a35c5c6 (diff) | |
download | git-c06c79667c9514aed00d29bcd80bd0cee7cc5a25.tar.gz |
diffcore-rename: somewhat optimized.
This changes diffcore-rename to reuse statistics information
gathered during similarity estimation, and updates the hashtable
implementation used to keep track of the statistics to be
denser. This seems to give better performance.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diffcore.h')
-rw-r--r-- | diffcore.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/diffcore.h b/diffcore.h index d31b3b476c..73c7842cc7 100644 --- a/diffcore.h +++ b/diffcore.h @@ -26,6 +26,7 @@ struct diff_filespec { unsigned char sha1[20]; char *path; void *data; + void *cnt_data; unsigned long size; int xfrm_flags; /* for use by the xfrm */ unsigned short mode; /* file mode */ @@ -103,6 +104,8 @@ void diff_debug_queue(const char *, struct diff_queue_struct *); extern int diffcore_count_changes(void *src, unsigned long src_size, void *dst, unsigned long dst_size, + void **src_count_p, + void **dst_count_p, unsigned long delta_limit, unsigned long *src_copied, unsigned long *literal_added); |