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

Re: [RFC] Design for http-pull on repo with packs

From
Junio C Hamano <junkio@cox.net>
Date
Jul 11, 2005, 03:18 UTC
Message-ID
<7v4qb2ni73.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<42D17D89.9080808@innehallsbolaget.se>

One very minor problem I have with Holmsand approach [*1*] is that the original Barkalow puller allowed a really dumb http server by not requiring directory index at all. For somebody like me with a cheap ISP account [*2*], it was great that I did not have to update 256 index.html files for objects/??/ directories. Admittedly, it would be just one directory object/pack/, but still...

On the other hand, picking an optimum set of packs from overlapping set of packs is indeed a very interesting (and hard combinatorial) problem to solve. I am hoping that in practice people would not force clients to do it with "interesting" set of packs. I would hope them to have just a full pack and incrementals, never having ovelaps, like Linus plans to do on his kernel repo.

On the other hand, for somebody like Jeff Garzik with 50 heads, it might make some sense to have a handful different overlapping packs, optimized for different sets of people wanting to pull some but not all of his heads.

Having said that, even if we want to support such a repository, we should remember that the server side optimization needs to be done only once per push to support many pulls by different downstream clients. Maybe preparing more than "list of pack file names" to help clients decide which packs to pull is desirable anyway. Say, "here are the list of packs. If you want to sync with this and that head, I would suggest starting by getting this pack."

[Footnotes]
*1* I was about to type Dan's, but both of you are ;-).

*2* Not having a public, rsync-reachable repository gave me a lot of incentive to think about issues to support small/cheap projects well ;-).

Previous: Dan HolmsandNext: Dan Holmsand
Message 5 of 9 in “[RFC] Design for http-pull on repo with packs”
  1. Daniel BarkalowJul 10, 2005
  2. Dan HolmsandJul 10, 2005
  3. Daniel BarkalowJul 10, 2005
  4. Dan HolmsandJul 10, 2005
  5. Junio C HamanoJul 11, 2005
  6. Dan HolmsandJul 11, 2005
  7. Tony LuckJul 11, 2005
  8. Junio C HamanoJul 11, 2005
  9. Dan HolmsandJul 12, 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.