Skip to content
Snippets Groups Projects

More optimizations

Merged rarbore2 requested to merge more_opt4 into main
2 files
+ 4
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -24,7 +24,7 @@ fn bfs<n, m: usize>(graph_nodes: Node[n], source: u32, edges: u32[m]) -> i32[n]
@cost_init for i in 0..n {
cost[i] = -1;
}
cost[source as u64] = 0;
@cost_init cost[source as u64] = 0;
// Nodes that were updated in the current iteration
let updated: bool[n];
Loading