Skip to content

Commit

Permalink
[tc] interchange loops for small speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
sbeamer committed Oct 10, 2023
1 parent 576d153 commit 2a2a7bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ size_t OrderedCount(const Graph &g) {
for (NodeID v : g.out_neigh(u)) {
if (v > u)
break;
auto it = g.out_neigh(u).begin();
for (NodeID w : g.out_neigh(v)) {
auto it = g.out_neigh(v).begin();
for (NodeID w : g.out_neigh(u)) {
if (w > v)
break;
while (*it < w)
Expand Down

0 comments on commit 2a2a7bb

Please sign in to comment.