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

Re: [PATCH] Microoptimize strbuf_cmp

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 19, 2009, 22:01 UTC
Message-ID
<7vvdq56ukb.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20090319210931.GB31014@blimp.localdomain>
Alex Riesen <raa.lkml@gmail.com> writes:
> Make it inline and cleanup a bit. It is definitely less code
> including object code, but it is not always measurably faster
> (but mostly is).

The only in-tree user seems to be rerere, so inlining for that single caller will reduce the object side, but I am not sure if this is a good change in the longer term if we want to encourage the use of strbuf library.

The rewrite of the logic does seem worth doing, though.
Previous: Alex RiesenNext: Alex Riesen
Message 2 of 3 in “Microoptimize strbuf_cmp”
  1. Microoptimize strbuf_cmpAlex Riesen, Mar 19, 2009
  2. Junio C HamanoMar 19, 2009
  3. Alex RiesenMar 19, 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.