changeset 9535:75d290db2df6

merge with mpm
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 03 Oct 2009 23:38:10 +0200
parents 8e202431d620 (diff) d932dc655881 (current diff)
children f04d17912441
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bdiff.c	Sat Oct 03 14:39:57 2009 -0500
+++ b/mercurial/bdiff.c	Sat Oct 03 23:38:10 2009 +0200
@@ -151,7 +151,7 @@
 	}
 
 	/* compute popularity threshold */
-	t = (bn >= 4000) ? bn / 1000 : bn + 1;
+	t = (bn >= 31000) ? bn / 1000 : 1000000 / (bn + 1);
 
 	/* match items in a to their equivalence class in b */
 	for (i = 0; i < an; i++) {