diff options
author | Jeff King <peff@peff.net> | 2012-05-21 18:23:29 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-22 13:31:03 -0700 |
commit | a0de28805dceaca86a6f7bedfd3e8c227b781d9d (patch) | |
tree | dce1eb8189354e5cb2b3d97e3e59fb60cc52a0bb /hex.c | |
parent | 9e8e704f0bc14da325aa63f639c6dc782c81e26f (diff) | |
download | git-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 'hex.c')
0 files changed, 0 insertions, 0 deletions