From: Jeff King Date: Thu, 20 Aug 2026 07:53:42 GMT Subject: Re: [PATCH 3/3] reftable/stack: avoid reloading the stack when already locked Message-ID: <20260820075342.GA2761530@coredump.intra.peff.net> In-Reply-To: <20260819-740-optimize-reloading-the-reftable-stack-v1-3-6bf5305d4e43@gmail.com> On Wed, Aug 19, 2026 at 03:19:39PM +0200, Karthik Nayak wrote: > Benchmarking with a fixed, non-symbolic target OID shows a modest but > consistent ~1-2% improvement in clock time for `update-ref` across ref > counts ranging from 2,000 to 100,000. Interesting. I get ~25% speedup with this patch, doing this: git init --ref-format=reftable cp -a .git/reftable reftable.orig seq -f "create refs/tags/foo-%g $blob" 50000 >input hyperfine -p 'rm -rf .git/reftable; cp -a reftable.orig .git/reftable' \ -L v old,new \ './git.{v} update-ref --stdin