Re: [PATCH] rev-list: estimate number of bisection step left From: Christian Couder <hidden> Date: 2016-06-15 22:46:14 Le jeudi 19 février 2009, Christian Couder a écrit :So the improved algorithm could be something like: static int estimate_bisect_steps(int all) { int n, x, e; float p; Oops, the line above is not needed. if (all < 3) return 0; n = log2(all); e = exp2(n); x = all - e; return (e < 3 * x) ? n : n - 1 ; }
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help