From c06c79667c9514aed00d29bcd80bd0cee7cc5a25 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 12 Mar 2006 03:22:10 -0800 Subject: 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 --- diffcore.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'diffcore.h') 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); -- cgit v1.2.3