git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] rev-list: estimate number of bisection step left

From
Christian Couder <chriscool@tuxfamily.org>
Date
Feb 19, 2009, 05:26 UTC
Message-ID
<200902190626.36163.chriscool@tuxfamily.org>
In-Reply-To
<200902190616.18747.chriscool@tuxfamily.org>
Le jeudi 19 février 2009, Christian Couder a écrit :
Show 6 quoted lines
> 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.
Show 9 quoted lines
> 	if (all < 3)
> 		return 0;
>
> 	n = log2(all);
> 	e = exp2(n);
> 	x = all - e;
>
> 	return (e < 3 * x) ? n : n - 1 ;
> }
Previous: Christian CouderNext: Christian Couder
Message 4 of 13 in “rev-list: estimate number of bisection step left”
  1. rev-list: estimate number of bisection step leftChristian Couder, Feb 17, 2009
  2. Junio C HamanoFeb 17, 2009
  3. Christian CouderFeb 19, 2009
  4. Christian CouderFeb 19, 2009
  5. Christian CouderFeb 19, 2009
  6. John TapsellFeb 19, 2009
  7. Christian CouderFeb 19, 2009
  8. Johannes SchindelinFeb 17, 2009
  9. John TapsellFeb 17, 2009
  10. Johannes SchindelinFeb 17, 2009
  11. John TapsellFeb 17, 2009
  12. Johannes SchindelinFeb 17, 2009
  13. Thomas RastFeb 17, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.