From: Jeff King <peff@peff.net>
To: Karthik Nayak <karthik.188@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 3/3] reftable/stack: avoid reloading the stack when already locked
Date: Mon, 24 Aug 2026 00:59:22 -0400 [thread overview]
Message-ID: <20260824045922.GC142844@coredump.intra.peff.net> (raw)
In-Reply-To: <CAOLa=ZQpeCKzQ3EVXQEhfxL1khUH0YD6_Kc1qDQhxoN926rsBw@mail.gmail.com>
On Sun, Aug 23, 2026 at 01:39:48PM -0400, Karthik Nayak wrote:
> I can reproduce your results locally too. I was a bit stumbled why,
> I was using a modified version of our benchmarks repository [1], which
> was using a fixed static target.
>
> The difference was I was updating 'refs/heads/*' and your script does
> 'refs/tags/*'. The difference is in `should_write_log()`, where for
> LOG_REFS_NORMAL and 'refs/heads/*' we shortcut to creating the logs.
> While for tags, we do a check to see reflog already exists. This causes
> a stack reload (before my patches). This shows the significant
> difference in our benchmarks.
Ah, yeah. The refs/heads/ case should already have been fast, at least
for the default config. Makes sense.
-Peff
next prev parent reply other threads:[~2026-08-24 4:59 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-19 13:19 [PATCH 0/3] reftable/stack: avoid reloading the stack when locked Karthik Nayak
2026-08-19 13:19 ` [PATCH 1/3] reftable/stack: remove `REFTABLE_STACK_NEW_ADDITION_RELOAD` Karthik Nayak
2026-08-19 16:28 ` Justin Tobler
2026-08-20 21:15 ` Karthik Nayak
2026-08-20 5:51 ` Patrick Steinhardt
2026-08-20 21:20 ` Karthik Nayak
2026-08-20 21:23 ` Karthik Nayak
2026-08-19 13:19 ` [PATCH 2/3] reftable/stack: move list lock to `struct reftable_stack` Karthik Nayak
2026-08-19 16:39 ` Justin Tobler
2026-08-19 17:17 ` Junio C Hamano
2026-08-23 15:28 ` Karthik Nayak
2026-08-19 13:19 ` [PATCH 3/3] reftable/stack: avoid reloading the stack when already locked Karthik Nayak
2026-08-19 16:49 ` Justin Tobler
2026-08-23 15:39 ` Karthik Nayak
2026-08-20 7:53 ` Jeff King
2026-08-23 17:39 ` Karthik Nayak
2026-08-24 4:59 ` Jeff King [this message]
2026-08-24 9:30 ` [PATCH v2 0/4] reftable/stack: avoid reloading the stack when locked Karthik Nayak
2026-08-24 9:30 ` [PATCH v2 1/4] reftable/stack: remove `REFTABLE_STACK_NEW_ADDITION_RELOAD` Karthik Nayak
2026-08-24 9:31 ` [PATCH v2 2/4] reftable/stack: rename reftable_stack_new_addition() Karthik Nayak
2026-08-24 9:31 ` [PATCH v2 3/4] reftable/stack: move list lock to `struct reftable_stack` Karthik Nayak
2026-08-24 9:31 ` [PATCH v2 4/4] reftable/stack: avoid reloading the stack when already locked Karthik Nayak
2026-08-24 22:52 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260824045922.GC142844@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=karthik.188@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox