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

Re: [PATCH] always start looking up objects in the last used pack first

From
DHDana How <danahow@gmail.com>
Date
Jun 2, 2007, 15:00 UTC
Message-ID
<56b7f5510706020800o10541844t151cb82221d077d5@mail.gmail.com>
In-Reply-To
<alpine.LFD.0.99.0705311015410.11491@xanadu.home>
On 5/31/07, Nicolas Pitre <nico@cam.org> wrote:
Show 8 quoted lines
> Which makes me wonder about a possible incremental improvement to my
> patch: on failure to find an object in the last used pack, the search
> should then start again from the pack containing the commit from which
> this object search is related to.  In the split pack case all commit
> objects will be located in the first pack so nothing will change there.
> In the multiple-fetch case then the search will always reset to packs
> not younger than the commit triggering those object lookups.  Question
> is how to implement that nicely...

My immediate reaction to this patch was that there should be a last-used-pack per object type. Or perhaps one for commits, and one for trees+blobs [since the latter are intermingled]? Unfortunately the interface only specifies the SHA-1, not the object type, and certainly not the "commit this is related to". I think your related-commit idea could be very useful, but it does require some extra info to be passed around which currently is not.

-- 
Dana L. How  danahow@gmail.com  +1 650 804 5991 cell
Previous: Nicolas PitreNext: Dana How
Message 5 of 6 in “always start looking up objects in the last used pack first”
  1. always start looking up objects in the last used pack firstNicolas Pitre, May 31, 2007
  2. Nicolas PitreMay 31, 2007
  3. Shawn O. PearceMay 31, 2007
  4. Nicolas PitreMay 31, 2007
  5. Dana HowJun 2, 2007
  6. Dana HowJun 2, 2007

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.