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

Re: Distinguishing FF vs non-FF updates in the reflog?

From
Jeff King <peff@peff.net>
Date
Mar 18, 2021, 22:54 UTC
Message-ID
<YFPaMj9PVfXlp4bL@coredump.intra.peff.net>
In-Reply-To
<21556546.pz8f0XPdgJ@mfick-lnx>
On Thu, Mar 18, 2021 at 04:31:24PM -0600, Martin Fick wrote:
Show 7 quoted lines
> On Thursday, March 18, 2021 9:58:56 AM MDT Han-Wen Nienhuys wrote:
> > The bitmaps are generated by GC, and you can't GC all the time. 
> 
> I believe that I recently saw an effort to make this incremental, perhaps 
> related to the geometric repacking series? If that were the case, you could gc 
> much more often cheaply. Perhaps it could be something done on every upload at 
> some point the way that reflog effectively does on every update?

That geometric repacking work is leading up to having a bitmap for a multi-pack-index. Which will make them _cheaper_, but still not especially cheap (because we've reordered the objects corresponding to each bit, and also because our writing process still does a lot of O(nr_commits) work).

In the very long run, I think the way out would be to stop using pack or midx ordering as the basis of the bitmap, and instead have a stable object ordering that can be appended to. That would allow true incremental generation of the bitmaps (leaving old ones in place, and just adding a new ones to represent new commits). But that's such a big departure from the status quo that having a midx bitmap seemed like a more attainable middle ground in the meantime.

-Peff
Previous: Martin FickNext: Jeff King
Message 9 of 19 in “Distinguishing FF vs non-FF updates in the reflog?”
  1. Han-Wen NienhuysMar 17, 2021
  2. Martin FickMar 17, 2021
  3. Han-Wen NienhuysMar 18, 2021
  4. Jeff KingMar 18, 2021
  5. Martin FickMar 18, 2021
  6. Han-Wen NienhuysMar 22, 2021
  7. Martin FickMar 22, 2021
  8. Martin FickMar 18, 2021
  9. Jeff KingMar 18, 2021
  10. Jeff KingMar 18, 2021
  11. Han-Wen NienhuysMar 22, 2021
  12. Jeff KingMar 26, 2021
  13. Ævar Arnfjörð BjarmasonMar 22, 2021
  14. Han-Wen NienhuysMar 22, 2021
  15. Ævar Arnfjörð BjarmasonMar 22, 2021
  16. Han-Wen NienhuysMar 22, 2021
  17. Ævar Arnfjörð BjarmasonMar 22, 2021
  18. Han-Wen NienhuysMar 22, 2021
  19. Junio C HamanoMar 22, 2021

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.