Skip to content

fetch.c optimizations

Sergey Vlasov git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8fetch.c: Remove useless lookup_object_type() call in process()fetch.c+10 -132 replies
2/8fetch.c: Make process() look at each object only oncefetch.c+5 -00 replies
3/8fetch.c: Remove redundant SCANNED flagfetch.c+1 -60 replies
4/8fetch.c: Remove redundant TO_FETCH flagfetch.c+1 -30 replies
5/8fetch.c: Remove some duplicated code in process()fetch.c+5 -80 replies
6/8fetch.c: Remove redundant test of TO_SCAN in process()fetch.c+0 -20 replies
7/8fetch.c: Clean up object flag definitionsfetch.c+3 -30 replies
8/8fetch.c: Remove call to parse_object() from process()fetch.c+0 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] fetch.c optimizations

Hello!

I have noticed that git-*-fetch now uses much more CPU than it was before the modifications to fix recovery after interrupted fetch. Here is a series of small patches which fix the problems which I have found (some of the fixes give pretty impressive results, like a 14x decrease of CPU time); as a positive side effect, fetch.c becomes slightly smaller and hopefully simpler than before.

Signature · 1 line
Sergey Vlasov