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

Re: [PATCH] handle concurrent pruning of packed objects

From
Junio C Hamano <junkio@cox.net>
Date
Jun 2, 2006, 16:10 UTC
Message-ID
<7vk67zbksv.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060602160456.GA8957@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 9 quoted lines
> That shouldn't make a difference for correctness, even if the old packs
> are still there. If you have an object in two packs, then it doesn't
> matter which one you pull it from. The main impacts I can think of are:
>   1. The old pack may already be mapped, and it would be more efficient
>      to use it. However, the new pack will be mapped on first use, so it
>      will be used from then on.
>   2. The pack list can grow without bound. However, for this to matter,
>      you'd have to do many prunes during the course of a single git
>      command.

I agree 100% on "shouldn't" part. What I wonder is if everybody works correctly if we mmap the same file (all available .idx are mapped all the time, and we map .pack LRU) twice. But I realize we have NO_MMAP configuration for unfortunate platforms to work it around so that wouldn't be a big deal.

Previous: Jeff KingNext: Jeff King
Message 5 of 7 in “handle concurrent pruning of packed objects”
  1. handle concurrent pruning of packed objectsJeff King, Jun 2, 2006
  2. Junio C HamanoJun 2, 2006
  3. Junio C HamanoJun 2, 2006
  4. Jeff KingJun 2, 2006
  5. Junio C HamanoJun 2, 2006
  6. sha1_file: avoid re-preparing duplicate packsJeff King, Jun 2, 2006
  7. Linus TorvaldsJun 2, 2006

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.