Skip to content

Commit 8508735

Browse files
committed
Use unstable sort to speed up InputGraph::freeze
1 parent 2cfac80 commit 8508735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input_graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl InputGraph {
147147
}
148148

149149
fn sort(&mut self) {
150-
self.edges.sort_by(|a, b| {
150+
self.edges.sort_unstable_by(|a, b| {
151151
a.from
152152
.cmp(&b.from)
153153
.then(a.to.cmp(&b.to))

0 commit comments

Comments
 (0)