rust/src/librustc_incremental/persist
2018-05-18 09:37:29 -07:00
..
data.rs
dirty_clean.rs Serialize attributes into the CrateRoot 2018-05-18 09:37:29 -07:00
file_format.rs
fs.rs incr.comp.: Run cache directory garbage collection before loading dep-graph. 2018-02-13 13:37:32 +01:00
load.rs Fix comment 2018-05-08 09:13:18 -04:00
mod.rs Update naming in line with PR comments 2018-05-11 08:09:53 -07:00
README.md
save.rs Update naming in line with PR comments 2018-05-11 08:09:53 -07:00
work_product.rs Serialize attributes into the CrateRoot 2018-05-18 09:37:29 -07:00

This is the code to load/save the dependency graph. Loading is assumed to run early in compilation, and saving at the very end. When loading, the basic idea is that we will load up the dependency graph from the previous compilation and compare the hashes of our HIR nodes to the hashes of the HIR nodes that existed at the time. For each node whose hash has changed, or which no longer exists in the new HIR, we can remove that node from the old graph along with any nodes that depend on it. Then we add what's left to the new graph (if any such nodes or edges already exist, then there would be no effect, but since we do this first thing, they do not).