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

Re: Performance regression in connectivity check during receive-pack (git 2.54)

From
Jeff King <peff@peff.net>
Date
Jul 26, 2026, 08:51 UTC
Message-ID
<20260726085117.GA3529599@coredump.intra.peff.net>
In-Reply-To
<amLgMqkqxR8mKIbT@pks.im>
On Fri, Jul 24, 2026 at 05:46:58AM +0200, Patrick Steinhardt wrote:
Show 7 quoted lines
> One other angle that Justin and I have been discussing (we were at an
> offsite together over the last couple days) was that we can do a small
> course correction: instead of handling alternates on the ODB level, we
> may be able to start treating alternates as an implementation detail of
> it. So both the handling of alternates, but also the handling of the
> GIT_OBJECT_DIRECTORY and GIT_ALTERNATE_OBJECT_DIRECTORIES environment
> variables would be moved into the "files" backend itself.

That seems reasonable to me. In theory it could lose some flexibility if some code really wanted to represent alternates as abstract sources, but I can't think of why you'd want to do so. Traditionally we did not even really have separate sources at all, and the point of adding them was not so much to have arbitrary combinations of sources as to abstract the details.

I guess somebody could want to use a local alternates object-dir along with their sql database of objects or whatever. But even then, it seems like the alternate could be added as its own files-backend odb source.

> This would solve a bunch of smaller issues that we're currently
> grappling with where some of the concepts in Git really want to operate
> across all of the alternates:
> [...]
Yeah, that all sounds like a positive direction. Thanks!
-Peff
Previous: Patrick SteinhardtNext: Justin Tobler
Message 9 of 13 in “Performance regression in connectivity check during receive-pack (git 2.54)”
  1. Wolfgang KritzingerJul 21, 2026
  2. Jeff KingJul 21, 2026
  3. Taylor BlauJul 21, 2026
  4. Junio C HamanoJul 21, 2026
  5. Patrick SteinhardtJul 22, 2026
  6. Junio C HamanoJul 22, 2026
  7. Jeff KingJul 23, 2026
  8. Patrick SteinhardtJul 24, 2026
  9. Jeff KingJul 26, 2026
  10. Justin ToblerJul 27, 2026
  11. Patrick SteinhardtAug 4, 2026
  12. Jeff KingJul 23, 2026
  13. Jeff KingJul 23, 2026

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.