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

[PATCH 0/2] Skip a connectivity check during fetch --filter

From
JTJonathan Tan <jonathantanmy@google.com>
Date
Jan 12, 2020, 04:15 UTC
Message-ID
<cover.1578802317.git.jonathantanmy@google.com>

The same optimization in dfa33a298d ("clone: do faster object check for partial clones", 2019-04-21) can be applied to fetch as well, so this patch set does so. Patch 1 makes the check more robust, and patch 2 applies it to one of two connectivity checks performed during the fetch.

As mentioned in patch 2, when fetching from a local repo, I got a speedup of 6.63s to 3.39s.

Jonathan Tan (2):
  connected: verify promisor-ness of partial clone
  fetch: forgo full connectivity check if --filter
 builtin/clone.c |  5 +++--
 builtin/fetch.c | 11 ++++++++++-
 connected.c     | 19 ++++++++++++++-----
 connected.h     | 11 ++++++-----
 4 files changed, 33 insertions(+), 13 deletions(-)
-- 
2.25.0.rc1.283.g88dfdc4193-goog
Next: Jonathan Tan
Message 1 of 6 in “Skip a connectivity check during fetch --filter”
  1. 0/2 Skip a connectivity check during fetch --filterJonathan Tan, Jan 12, 2020
  2. 1/2 connected: verify promisor-ness of partial cloneJonathan Tan, Jan 12, 2020
  3. Jonathan NiederJan 29, 2020
  4. 2/2 fetch: forgo full connectivity check if --filterJonathan Tan, Jan 12, 2020
  5. Jonathan NiederJan 29, 2020
  6. Junio C HamanoJan 30, 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.