diff options
author | Masaya Suzuki <masayasuzuki@google.com> | 2019-09-15 14:18:02 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-09-16 13:02:50 -0700 |
commit | b7e2d8bca5412db7b1bd3a711db3693ca6674dd2 (patch) | |
tree | 03a27951b10722af9046532ce44d582337145aa9 /builtin/commit-graph.c | |
parent | 5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9 (diff) |
fetch: use oidset to keep the want OIDs for faster lookup
During git-fetch, the client checks if the advertised tags' OIDs are
already in the fetch request's want OID set. This check is done in a
linear scan. For a repository that has a lot of refs, repeating this
scan takes 15+ minutes. In order to speed this up, create a oid_set for
other refs' OIDs.
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions