-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Still more ObligationForest
improvements.
#64805
Merged
Merged
Commits on Sep 29, 2019
-
It's not necessary; cycles (which are rare) can be detected by looking at the node stack. This change speeds things up slightly, as well as simplifying the code a little.
Configuration menu - View commit details
-
Copy full SHA for 3b506d9 - Browse repository at this point
Copy the full SHA 3b506d9View commit details -
For consistency with other variables in this file.
Configuration menu - View commit details
-
Copy full SHA for 4a7fb8b - Browse repository at this point
Copy the full SHA 4a7fb8bView commit details -
It has a single call site, and the code is easier to read this way.
Configuration menu - View commit details
-
Copy full SHA for 85a56cb - Browse repository at this point
Copy the full SHA 85a56cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7130e6c - Browse repository at this point
Copy the full SHA 7130e6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea72650 - Browse repository at this point
Copy the full SHA ea72650View commit details -
Remove unnecessary uses of
ObligationForest::scratch
.They don't help performance at all, and just complicate things.
Configuration menu - View commit details
-
Copy full SHA for 22943ee - Browse repository at this point
Copy the full SHA 22943eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fb1f37 - Browse repository at this point
Copy the full SHA 6fb1f37View commit details -
Convert some
match
expressions toif
s.These make the code more concise.
Configuration menu - View commit details
-
Copy full SHA for 9e67f19 - Browse repository at this point
Copy the full SHA 9e67f19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a62bb1 - Browse repository at this point
Copy the full SHA 8a62bb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2883c25 - Browse repository at this point
Copy the full SHA 2883c25View commit details -
Avoid the popping loop at the end of
compress()
.By collecting the done obligations (when necessary) in the main loop. This makes the code cleaner. The commit also changes the order in which successful obligations are returned -- they are now returned in the registered order, rather than reversed. Because this order doesn't actually matter, being only used by tests, the commit uses `sort()` to make the test agnostic w.r.t. the order.
Configuration menu - View commit details
-
Copy full SHA for a820672 - Browse repository at this point
Copy the full SHA a820672View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.