mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Wasm: sort and deduplicate on each round of live function tracing
This commit is contained in:
parent
9dabc2db15
commit
6b204d11a2
2 changed files with 5 additions and 1 deletions
|
@ -140,6 +140,9 @@ pub fn trace_function_deps<'a, Indices: IntoIterator<Item = u32>>(
|
|||
if next_trace.is_empty() {
|
||||
break;
|
||||
}
|
||||
next_trace.sort_unstable();
|
||||
next_trace.dedup();
|
||||
|
||||
current_trace.clone_from(&next_trace);
|
||||
next_trace.clear();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue