Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't process cycles when stalled
This improves the `inflate-0.1.0` benchmark by about 10% for me.
  • Loading branch information
jonas-schievink committed Oct 17, 2016
1 parent 6dc035e commit 88fde7f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/librustc_data_structures/obligation_forest/mod.rs
Expand Up @@ -342,6 +342,16 @@ impl<O: ForestObligation> ObligationForest<O> {
}
}

if stalled {
// There's no need to perform marking, cycle processing and compression when nothing
// changed.
return Outcome {
completed: vec![],
errors: errors,
stalled: stalled,
};
}

self.mark_as_waiting();
self.process_cycles(processor);

Expand Down

0 comments on commit 88fde7f

Please sign in to comment.