Even more ObligationForest improvements#64627
Merged
bors merged 7 commits intorust-lang:masterfrom Sep 25, 2019
Merged
Conversation
This gives a slight speed-up.
Optimizing for the common numbers of entries in `stalled_on` wins about 4% on `keccak` and `inflate`.
This is a big speed win for `keccak` and `inflate`.
We normally use `index` for indices to `ObligationForest::nodes`, but this is a `Nodes::dependents` index.
The name `waiting_cache` sounds like it is related to the states `NodeState::Waiting`, but it's not; the cache holds nodes of various states. This commit changes it to `active_state`.
Because the meaning of this `index` variable is quite different to all the other `index` variables in this file.
Contributor
Author
|
@bors try @rust-timer queue |
Collaborator
|
Awaiting bors try build completion |
Collaborator
bors
added a commit
that referenced
this pull request
Sep 20, 2019
Even more `ObligationForest` improvements Following on from #64545, more speed and readability improvements. r? @nikomatsakis
Collaborator
|
💥 Test timed out |
Contributor
Author
|
Not sure what happened there. Let's try it the old-fashioned way: |
Collaborator
bors
added a commit
that referenced
this pull request
Sep 20, 2019
Even more `ObligationForest` improvements Following on from #64545, more speed and readability improvements. r? @nikomatsakis
Contributor
Author
|
Some local measurements: |
Collaborator
|
☀️ Try build successful - checks-azure |
Collaborator
|
Queued 85a4a15 with parent ea3ba36, future comparison URL. |
Collaborator
|
Finished benchmarking try commit 85a4a15, comparison URL. |
Member
|
@nnethercote Do you every take a day off of optimizing rustc? 😄 |
nikomatsakis
approved these changes
Sep 23, 2019
Contributor
|
@bors r+ |
Collaborator
|
📌 Commit aa10abb has been approved by |
Contributor
Author
|
@bors rollup=never |
Collaborator
bors
added a commit
that referenced
this pull request
Sep 25, 2019
Even more `ObligationForest` improvements Following on from #64545, more speed and readability improvements. r? @nikomatsakis
Collaborator
|
☀️ Test successful - checks-azure |
tmandry
added a commit
to tmandry/rust
that referenced
this pull request
Oct 2, 2019
… r=nikomatsakis Still more `ObligationForest` improvements. Following on from rust-lang#64627, more readability improvements, but negligible effects on speed. r? @nikomatsakis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Following on from #64545, more speed and readability improvements.
r? @nikomatsakis