rust/src/librustc_incremental/persist
2017-11-29 16:28:25 +01:00
..
data.rs incr.comp.: Remove on-export crate metadata hashing. 2017-11-29 16:28:25 +01:00
dirty_clean.rs incr.comp.: Remove on-export crate metadata hashing. 2017-11-29 16:28:25 +01:00
file_format.rs incr.comp.: Include header when loading cache files in order to get the same byte offsets as when saving. 2017-11-13 15:13:44 +01:00
fs.rs incr.comp.: Remove on-export crate metadata hashing. 2017-11-29 16:28:25 +01:00
load.rs incr.comp.: Remove on-export crate metadata hashing. 2017-11-29 16:28:25 +01:00
mod.rs incr.comp.: Implement query diagnostic persistence. 2017-10-25 15:43:48 +02:00
README.md add some comments 2016-04-06 12:42:46 -04:00
save.rs incr.comp.: Remove on-export crate metadata hashing. 2017-11-29 16:28:25 +01:00
work_product.rs rustc: Move bytecode compression into codegen 2017-10-21 13:02:34 -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).