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

Re: [PATCH TAKE 2] Avoid a useless prefix lookup in strbuf_expand()

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 10, 2008, 10:52 UTC
Message-ID
<7v4pchgk1h.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<e5bfff550802092259u4139312cufc4756e9d81f4154@mail.gmail.com>
"Marco Costalba" <mcostalba@gmail.com> writes:
Show 12 quoted lines
> On Feb 10, 2008 3:36 AM, Junio C Hamano <gitster@pobox.com> wrote:
> ...
>> I do recall pointing out that a rather common "format:%an <%ae>"
>> ends up parsing the same line twice, and mentioned we may want
>> to memoise the first call's result in the format_commit_context
>> structure, but what else did I suggest???
>>
>
> Please read thread: "[PATCH RESEND] Avoid a useless prefix lookup in
> strbuf_expand()"
>
> you will find your suggestions and following answers.

Yeah, I mentioned the comment needing to be adjusted (which you did in this round), asked a minor question about the code (you answered in the thread), besides pointing out that a rather common "format:%an <%ae>" being inefficient (which you brushed aside, claiming that is a special case).

I've touched-up a few typoes and style glitches and will park this on 'pu' for now.

Previous: Marco CostalbaNext: Johannes Schindelin
Message 4 of 6 in “Avoid a useless prefix lookup in strbuf_expand()”
  1. Avoid a useless prefix lookup in strbuf_expand()Marco Costalba, Feb 9, 2008
  2. Junio C HamanoFeb 10, 2008
  3. Marco CostalbaFeb 10, 2008
  4. Junio C HamanoFeb 10, 2008
  5. Johannes SchindelinFeb 10, 2008
  6. Marco CostalbaFeb 10, 2008

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.