Skip a connectivity check during fetch --filter
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | connected: verify promisor-ness of partial clonebuiltin/ connected.c connected.h | +23 | 1 reply | |
| 2/2 | fetch: forgo full connectivity check if --filterbuiltin/ | +10 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Jonathan Nieder |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] Skip a connectivity check during fetch --filter
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(-)
Signature · 1 line
2.25.0.rc1.283.g88dfdc4193-goog