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

Re: memrchr() implementation

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 29, 2011, 04:47 UTC
Message-ID
<20110729044756.GA6743@elie>
In-Reply-To
<CALUzUxqNGsThcWem4mj=M3EcFF_N5GpARB+x0qx+Q1Gs76Gzig@mail.gmail.com>
Hi,
Tay Ray Chuan wrote:
> So what's the best way to get git to use memrchr()?
In my very humble opinion: [1].
> I was thinking of getting git to use glibc's implementation if glibc
> is present, if not, use a naive implementation included in git's code
> base [2].
Sounds reasonable.
> [2] (ISC-style license)
> http://www.sudo.ws/repos/sudo/file/c1ab4b940980/compat/memrchr.c

For something simple as this, I'd prefer to avoid a differently licensed (even ISC-licensed) file.

It might also be worth convincing the folks at http://austingroupbugs.net/ to standardize the interface so there could be optimized implementations of memrchr on more platforms over time.

Thanks, Jonathan

[1] http://thread.gmane.org/gmane.comp.version-control.git/159081/focus=159121
Previous: Jeff King
Message 3 of 3 in “memrchr() implementation”
  1. Tay Ray ChuanJul 29, 2011
  2. Jeff KingJul 29, 2011
  3. Jonathan NiederJul 29, 2011

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.