summaryrefslogtreecommitdiff
path: root/column.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-05-21 18:23:29 -0400
committerJunio C Hamano <gitster@pobox.com>2012-05-22 13:31:03 -0700
commita0de28805dceaca86a6f7bedfd3e8c227b781d9d (patch)
treedce1eb8189354e5cb2b3d97e3e59fb60cc52a0bb /column.c
parent9e8e704f0bc14da325aa63f639c6dc782c81e26f (diff)
downloadgit-a0de28805dceaca86a6f7bedfd3e8c227b781d9d.tar.gz
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 'column.c')
0 files changed, 0 insertions, 0 deletions