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

Re: Linux 2.6.15-rc2

From
Linus Torvalds <torvalds@osdl.org>
Date
Nov 24, 2005, 19:57 UTC
Message-ID
<Pine.LNX.4.64.0511241154340.13959@g5.osdl.org>
In-Reply-To
<7v4q61suhi.fsf@assigned-by-dhcp.cox.net>
On Thu, 24 Nov 2005, Junio C Hamano wrote:
Show 5 quoted lines
> 
> Performance perceived by cloners is helped by
> 
>     $ mkdir -p .git/pack-cache
>     $ git-rev-list --objects --all | git-pack-objects .git/pack-cache/pack

That really doesn't work very well. I push to that tree often several times a day, and you'd have to re-do the cache each time.

So it would be much better if git-pack-objects would just always cache its output in .git/pack-cache - along with some logic to just get rid of old ones regularly.

Since git-pack-objects has to generate the pack _anyway_, it might as well save it away when it does - so that if you have lots of people doing clones or pulling, you'd only need to run it once for a particular set of objects, and you'd not have to do any extra (or unnecessary) maintenance.

		Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 10 in “Re: Linux 2.6.15-rc2”
  1. Ed TomlinsonNov 24, 2005
  2. Andreas EricssonNov 24, 2005
  3. Linus TorvaldsNov 24, 2005
  4. Junio C HamanoNov 24, 2005
  5. Linus TorvaldsNov 24, 2005
  6. Junio C HamanoNov 24, 2005
  7. Linus TorvaldsNov 24, 2005
  8. Nick HengeveldNov 24, 2005
  9. Ed TomlinsonNov 25, 2005
  10. Andreas EricssonNov 25, 2005

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.