-
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
Queryify is_doc_hidden
#94897
Queryify is_doc_hidden
#94897
Conversation
It came up hot on some profiling of rustdoc I did, so hopefully turning it into a query will help.
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
r? @cjgillot |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit f39d0fc with merge 7466c2b2229204dd713077a6418bfbacfbd09cc4... |
☀️ Try build successful - checks-actions |
Queued 7466c2b2229204dd713077a6418bfbacfbd09cc4 with parent f103b29, future comparison URL. |
pub fn provide(providers: &mut ty::query::Providers) { | ||
*providers = ty::query::Providers { normalize_opaque_types, ..*providers } | ||
*providers = ty::query::Providers { normalize_opaque_types, is_doc_hidden, ..*providers } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this only provides it for the local crate I think, you should double check it doesn't crash on external crates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, I didn't realize that, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The distinction between local and extern query providers only exists if the query is marked separate_provide_extern
. This query is not marked as such, so this implementation will be called for both the local crate and extern crates.
Finished benchmarking commit (7466c2b2229204dd713077a6418bfbacfbd09cc4): comparison url. Summary: This benchmark run shows 43 relevant improvements 🎉 to instruction counts.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. @bors rollup=never |
📌 Commit f39d0fc has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (4800c78): comparison url. Summary: This benchmark run shows 40 relevant improvements 🎉 to instruction counts.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Inspired by rust-lang#127144 (review) and previous success in rust-lang#94897.
Queryify `has_attr` to improve performance Inspired by rust-lang#127144 (review) and previous success in rust-lang#94897. r? `@compiler-errors`
It came up hot on some profiling of rustdoc I did, so hopefully turning
it into a query will help.