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

Re: What's cooking in git.git (Nov 2018, #06; Wed, 21)

From
Jeff King <peff@peff.net>
Date
Nov 26, 2018, 18:13 UTC
Message-ID
<20181126181320.GA32492@sigill.intra.peff.net>
In-Reply-To
<xmqqpnut29uq.fsf@gitster-ct.c.googlers.com>
On Sun, Nov 25, 2018 at 11:02:05AM +0900, Junio C Hamano wrote:
Show 13 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > I do also think in the long run we should be fixing the "unreachable
> > always become loose" issues.
> 
> I think I've seen an idea of collecting them into a garbage pack
> floated for at least a few times here.  What are the downsides?  We
> no longer will know when these unreachable ones were last accessed
> individually so we need to come up with a different policy around
> their expiration?  As the common traits among objects in such a
> garbage pack (iow the way we discover the objects that need to be
> placed in there) does not involve path information and we lose the
> ability to compress them well?
Yes, the main issue is handling the expiration/mtime.
We may lose some input to the delta heuristics, but:
  - the current alternative is non-delta loose objects (so just shoving
    those in a pack is no worse for disk space, and probably better
    because of less inode/file overhead)
  - if they were already packed we can often just retain the existing
    deltas (and we get this basically for free with the existing code)
  - we could still walk unreachable bits of the graph, starting at
    dangling commits, to find the path information (we do this to some
    degree already to avoid dropping objects depended on by "unreachable
    but recent" objects, but I don't know how systematic we are about
    making sure to hit walk down from root trees first)

The most thorough discussion I know of in this direction is the one around:

  https://public-inbox.org/git/20170610080626.sjujpmgkli4muh7h@sigill.intra.peff.net/
-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 18 in “What's cooking in git.git (Nov 2018, #06; Wed, 21)”
  1. Junio C HamanoNov 21, 2018
  2. Ævar Arnfjörð BjarmasonNov 21, 2018
  3. Jeff KingNov 22, 2018
  4. Ævar Arnfjörð BjarmasonNov 22, 2018
  5. Jeff KingNov 24, 2018
  6. Junio C HamanoNov 25, 2018
  7. Jeff KingNov 26, 2018
  8. Junio C HamanoNov 24, 2018
  9. Jeff KingNov 24, 2018
  10. js/vsts-ci, was Re: What's cooking in git.git (Nov 2018, #06; Wed, 21)Johannes Schindelin, Nov 21, 2018
  11. Stephen P. SmithNov 21, 2018
  12. Junio C HamanoNov 22, 2018
  13. Stephen P. SmithNov 22, 2018
  14. Linus TorvaldsNov 22, 2018
  15. Ævar Arnfjörð BjarmasonNov 22, 2018
  16. Stefan BellerNov 26, 2018
  17. Junio C HamanoNov 26, 2018
  18. Matthew DeVoreDec 5, 2018

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.