]> git.lizzy.rs Git - rust.git/commit
load/save hashes of metadata
authorNiko Matsakis <niko@alum.mit.edu>
Fri, 6 May 2016 19:09:31 +0000 (15:09 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 18 May 2016 14:11:36 +0000 (10:11 -0400)
commit3a2edd7e613638a61bf70499e4c225c2fec36a5d
treec90f8d2a327fe22588152103f18ddcb28dd588d7
parentb01919a1443615f2ee78f91515e8f01dc2591177
load/save hashes of metadata

This commit reorganizes how the persist code treats hashing. The idea is
that each crate saves a file containing hashes representing the metadata
for each item X. When we see a read from `MetaData(X)`, we can load this
hash up (if we don't find a file for that crate, we just use the SVH for
the entire crate).

To compute the hash for `MetaData(Y)`, where Y is some local item, we
examine all the predecessors of the `MetaData(Y)` node and hash their
hashes together.
src/librustc_incremental/persist/data.rs
src/librustc_incremental/persist/directory.rs
src/librustc_incremental/persist/hash.rs [new file with mode: 0644]
src/librustc_incremental/persist/load.rs
src/librustc_incremental/persist/mod.rs
src/librustc_incremental/persist/save.rs
src/librustc_incremental/persist/util.rs