Skip to content

perf: dep_graph: deduplicate task reads with an epoch-filtered index recorder#159115

Draft
xmakro wants to merge 1 commit into
rust-lang:mainfrom
xmakro:dep-graph-index-read-recorder
Draft

perf: dep_graph: deduplicate task reads with an epoch-filtered index recorder#159115
xmakro wants to merge 1 commit into
rust-lang:mainfrom
xmakro:dep-graph-index-read-recorder

Conversation

@xmakro

@xmakro xmakro commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 11, 2026
fn slot(&mut self, index: DepNodeIndex) -> &mut u32 {
let index = index.as_usize();
if index >= self.epochs.raw.len() {
self.epochs.raw.resize((index + 1).next_power_of_two().max(64), 0);

@kn1g78 kn1g78 Jul 11, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can retain up to 4 × 64 MiB epoch tables for tasks with only 17 reads but high global DepNodeIndex values; could we cap/fallback this or provide peak-RSS benchmark data?

View changes since the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants