-
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
Even more ObligationForest
improvements
#64627
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.
@bors try @rust-timer queue |
Awaiting bors try build completion |
Even more `ObligationForest` improvements Following on from #64545, more speed and readability improvements. r? @nikomatsakis
💥 Test timed out |
Not sure what happened there. Let's try it the old-fashioned way: |
Even more `ObligationForest` improvements Following on from #64545, more speed and readability improvements. r? @nikomatsakis
Some local measurements:
|
☀️ Try build successful - checks-azure |
Queued 85a4a15 with parent ea3ba36, future comparison URL. |
Finished benchmarking try commit 85a4a15, comparison URL. |
@nnethercote Do you every take a day off of optimizing rustc? 😄 |
@bors r+ |
📌 Commit aa10abb has been approved by |
@bors rollup=never |
Even more `ObligationForest` improvements Following on from #64545, more speed and readability improvements. r? @nikomatsakis
☀️ Test successful - checks-azure |
… r=nikomatsakis Still more `ObligationForest` improvements. Following on from rust-lang#64627, more readability improvements, but negligible effects on speed. r? @nikomatsakis
Following on from #64545, more speed and readability improvements.
r? @nikomatsakis