Thread (26 messages) flat view 26 messages, 5 authors, 11d ago

Re: [PATCH 3/3] reftable/stack: avoid reloading the stack when already locked

From: Jeff King <hidden>
Date: 2026-08-24 04:59:24

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help