summaryrefslogtreecommitdiff
path: root/remote-curl.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2012-05-21 18:23:29 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-05-22 13:31:03 -0700
commita0de28805dceaca86a6f7bedfd3e8c227b781d9d (patch)
treedce1eb8189354e5cb2b3d97e3e59fb60cc52a0bb /remote-curl.c
parentfetch-pack: sort the list of incoming refs (diff)
downloadtgif-a0de28805dceaca86a6f7bedfd3e8c227b781d9d.tar.xz
fetch-pack: avoid quadratic loop in filter_refs
We have a list of refs that we want to compare against the "match" array. The current code searches the match list linearly, giving quadratic behavior over the number of refs when you want to fetch all of them. Instead, we can compare the lists as we go, giving us linear behavior. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote-curl.c')
0 files changed, 0 insertions, 0 deletions