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

Re: Add a "Flattened Cache" to `git --clone`?

From
Junio C Hamano <gitster@pobox.com>
Date
May 14, 2020, 21:56 UTC
Message-ID
<xmqqmu6ap4dw.fsf@gitster.c.googlers.com>
In-Reply-To
<CAGjfG9bsQh2C6WP242v4LoiaSdghZDPuqns0VO82Txe-V54_KA@mail.gmail.com>
Caleb Gray <hey@calebgray.com> writes:
> To Clarify: I'm talking about a server-side only cache which behaves
> much like a `tar` file: it is a flat version of exactly(*) what ends
> up on the client's storage. When a client runs `git --clone` and
> there's a valid cache on the other end, that's all that gets streamed.

So this is to save server processing time only. It does not save bandwidth (the "cache" is bit-for-bit idential replay of the clone request it served earlier), and it does not save client processing cycles (as the receiving end must validate the whole packdata it received before it can even know what objects it received).

OK.
Previous: Caleb GrayNext: Caleb Gray
Message 12 of 17 in “Add a "Flattened Cache" to `git --clone`?”
  1. Caleb GrayMay 14, 2020
  2. Konstantin RyabitsevMay 14, 2020
  3. Bryan TurnerMay 14, 2020
  4. Theodore Y. Ts'oMay 14, 2020
  5. Eric SunshineMay 14, 2020
  6. Konstantin RyabitsevMay 14, 2020
  7. Junio C HamanoMay 14, 2020
  8. Konstantin RyabitsevMay 14, 2020
  9. Eric WongMay 15, 2020
  10. Konstantin RyabitsevMay 17, 2020
  11. Caleb GrayMay 14, 2020
  12. Junio C HamanoMay 14, 2020
  13. Caleb GrayMay 14, 2020
  14. Junio C HamanoMay 14, 2020
  15. Bryan TurnerMay 14, 2020
  16. Junio C HamanoMay 14, 2020
  17. Caleb GrayMay 25, 2020

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.