Skip to content

Conversation

Kobzol
Copy link
Member

@Kobzol Kobzol commented Jul 8, 2025

I forgot that rustc doesn't deduplicate query invocations into individual queries, so we have to do it here. I also changed the logic around invocation_count to make it consistent between the expensive and the aggregated query cache hit counters.

Kobzol added 2 commits July 8, 2025 12:42
Invocation count should contain the number of times the query was actually executed, i.e. cache misses.
@Kobzol Kobzol requested a review from oli-obk July 8, 2025 10:48
@oli-obk
Copy link
Contributor

oli-obk commented Jul 8, 2025

I guess this makes the invocation_count somewhat of a misnomer. It's invoked in both cases, but the query provider is only invoked if it's not a cache hit.

@oli-obk oli-obk added this pull request to the merge queue Jul 8, 2025
Merged via the queue into rust-lang:master with commit e325cd3 Jul 8, 2025
4 checks passed
@Kobzol Kobzol deleted the query-page-aggregation branch July 8, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants