path: root/diffcore.h
diff options
authorJunio C Hamano <>2006-03-12 11:22:10 (GMT)
committerJunio C Hamano <>2006-03-12 11:22:10 (GMT)
commitc06c79667c9514aed00d29bcd80bd0cee7cc5a25 (patch)
tree75549257a77d8d32859a1128f5d01dce31dd5a3b /diffcore.h
parentce2a34188b70c2d04ffdc1d9d3acc04d7a35c5c6 (diff)
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 <>
Diffstat (limited to 'diffcore.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/diffcore.h b/diffcore.h
index d31b3b4..73c7842 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);