Skip to content

Commit ea47269

Browse files
committed
rustc_query_system: share previous graph edges with current graph
Reduce memory consumption by sharing the previous dependency graph's edges with the current graph when it is known to be valid to do so. It is known to be valid whenever we mark a node green because all of its dependencies were green. It is *not* known to be valid when we mark a node green because we re-executed its query and its result was the same as in the previous compilation session. In that case, the dependency set might have changed (we don't try to determine whether or not it changed and whether or not we can share).
1 parent f6d6b0c commit ea47269

File tree

2 files changed

+159
-65
lines changed

2 files changed

+159
-65
lines changed

0 commit comments

Comments
 (0)