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

Re: [PATCH v3 1/3] Introduce sorted-array binary-search function.

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 16, 2010, 17:27 UTC
Message-ID
<7vy68ti3gr.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1289255942-19705-2-git-send-email-ydirson@altern.org>
Yann Dirson <ydirson@altern.org> writes:
> We use a cpp-based template mechanism to declare the array and its
> management data, as well as a search function, derived from locate_rename_dst()
> from diffcore-rename.c.  Thanks to Jonathan Nieder for this design idea.
Hmmm.... Yet another binary search...

Can we generalize the existing ones first before adding any of this in (hint: look for "git grep -w -e hi --and -e lo")?

Previous: Yann DirsonNext: Yann Dirson
Message 3 of 6 in “generalizing sorted-array handling”
  1. generalizing sorted-array handlingYann Dirson, Nov 8, 2010
  2. 1/3 Introduce sorted-array binary-search function.Yann Dirson, Nov 8, 2010
  3. Junio C HamanoNov 16, 2010
  4. Yann DirsonNov 16, 2010
  5. 2/3 Separate sorted-array type declaration from array declaration.Yann Dirson, Nov 8, 2010
  6. 3/3 Convert diffcore-rename's rename_src to the new sorted-array API.Yann Dirson, Nov 8, 2010

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.