Skip to content

incr.comp.: Do not hard-wire DepGraph into Session and CrateStore. #44390

Closed
@michaelwoerister

Description

@michaelwoerister

In the current setup, we create the DepGraph very early, so it can be put into the CrateStore and the Session object. This means that we construct the DepGraph long before we have enough information to know where to load the previous DepGraph from and, because the CrateStore is used very early too, we are registering dep-nodes and edges before the graph is fully operational. This is ugly but harmless in the current implementation. In the new tracking system it would become a problem.

So the plan is to construct the DepGraph only when we can already load the previous DepGraph. This needs some refactoring:

Any work in this direction will want to be based on top of #44341 the master branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions