From: Junio C Hamano <gitster@pobox.com>
To: Patrick Steinhardt <ps@pks.im>
Cc: git@vger.kernel.org, Justin Tobler <jltobler@gmail.com>,
Taylor Blau <me@ttaylorr.com>
Subject: Re: What's cooking in git.git (May 2025, #07; Fri, 23)
Date: Tue, 27 May 2025 09:50:51 -0700 [thread overview]
Message-ID: <xmqqtt56ov4k.fsf@gitster.g> (raw)
In-Reply-To: <aDV0jwaQ2DlcM0lZ@pks.im> (Patrick Steinhardt's message of "Tue, 27 May 2025 10:15:11 +0200")
Patrick Steinhardt <ps@pks.im> writes:
> On Fri, May 23, 2025 at 07:16:04PM -0700, Junio C Hamano wrote:
>> * ps/midx-negative-packfile-cache (2025-05-20) 2 commits
>> - midx: stop repeatedly looking up nonexistent packfiles
>> - packfile: explain ordering of how we look up auxiliary pack files
>>
>> When a stale .midx file refers to .pack files that no longer exist,
>> we ended up checking for these non-existent files repeatedly, which
>> has been optimized by memoizing the non-existence.
>>
>> Will merge to 'next'?
>> source: <20250520-pks-pack-avoid-stats-on-missing-v2-0-333c5217fb05@pks.im>
>
> I wanted to send one more iteration of this where I hide the ugliness of
> `(void *)(intptr_t)-1` behind a macro, as suggested. But I saw that
> Taylor has built on top of these patches, so I don't want to make his
> life harder. Cc'd him.
Yeah, I do not think I've merged Taylor's work anywhere yet, but I
did notice that it was built on top of this topic. I think it is
perfectly OK to clean it up before your topic hits 'next'; adjusting
to such a change is a responsibility of the author of a topic that
depends on anything not in 'next' yet.
> I think the only outstanding discussion is whether to name things
> `odb_alternate` or `odb_source` [1]. In case others agree that
> `odb_source` is a better name I'm happy to revise, but if not I'd rather
> keep it as-is.
The model in which the term "alternates" was born is "A repository
has its own object directory, the primary one, and in addition it
can borrow from zero or more alternate object directories that are
used by other repositories". The presence of the primary makes the
word "alternate" meaningful.
Is the model now "A repository has one object store, which consists
of one or more X, all of which are equals"? If there is no primary
that is more special than others, then calling X an "alternate" may
indeed sound funny, although (1) I do not find it terribly confusing
and (2) I do not find "source" much better, either.
The names we use to call the collection and the underlying
implementations of the collection in the reference world
unfortunately does not quite help to guide us, as we do not take two
implementations and compose into one unified view, which is what we
are doing in the object store. Hmmm...
We call pathspec elements given on the command line collectively a
pathspec. "Object store elements like loose object directories and
packfiles form the object store"? That may be a mouthful. I dunno.
next prev parent reply other threads:[~2025-05-27 16:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-24 2:16 What's cooking in git.git (May 2025, #07; Fri, 23) Junio C Hamano
2025-05-27 8:15 ` Patrick Steinhardt
2025-05-27 16:50 ` Junio C Hamano [this message]
2025-05-27 19:45 ` Justin Tobler
2025-05-30 9:47 ` Patrick Steinhardt
2025-05-30 16:28 ` Junio C Hamano
2025-06-02 6:42 ` Patrick Steinhardt
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=xmqqtt56ov4k.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jltobler@gmail.com \
--cc=me@ttaylorr.com \
--cc=ps@pks.im \
/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;
as well as URLs for NNTP newsgroup(s).