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

Re: [PATCH] refs: fix interleaving hook calls with reference-transaction hook

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 7, 2020, 17:32 UTC
Message-ID
<xmqqpn82gy51.fsf@gitster.c.googlers.com>
In-Reply-To
<20200807094946.GA1758126@tanuki.pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 16 quoted lines
> On Fri, Aug 07, 2020 at 05:32:39AM -0400, Jeff King wrote:
>
>> That implies you're just seeing noise. And indeed, with the patch below
>> I get:
>> 
>> Test                         HEAD^             HEAD
>> --------------------------------------------------------------------
>> 1400.2: update-ref           1.93(1.57+0.42)   1.91(1.55+0.42) -1.0%
>> 1400.3: update-ref --stdin   0.07(0.02+0.05)   0.07(0.02+0.05) +0.0%
>> 
>> Running it a second time gets me +0.5%. :)
>
> Yeah, it's also been my take that OS-level overhead is probably going to
> matter more than those access calls, and I argued such back when I
> proposed the hook. So I'm perfectly happy to see this caching mechanism
> go.

Is the above about negative cache? IOW, does the above demonstrate that one extra access() to make sure there is no hook does not hurt us anything?

If so, yes, I am 100% for removing the cache mechanism.

Thanks for driving design decision with numbers. That's always pleasant to see.

Previous: Patrick SteinhardtNext: Jeff King
Message 6 of 9 in “refs: fix interleaving hook calls with reference-transaction hook”
  1. refs: fix interleaving hook calls with reference-transaction hookPatrick Steinhardt, Aug 7, 2020
  2. Jeff KingAug 7, 2020
  3. Patrick SteinhardtAug 7, 2020
  4. Jeff KingAug 7, 2020
  5. Patrick SteinhardtAug 7, 2020
  6. Junio C HamanoAug 7, 2020
  7. Jeff KingAug 7, 2020
  8. Jeff KingAug 7, 2020
  9. Junio C HamanoAug 7, 2020

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.