diff options
| author | bors <bors@rust-lang.org> | 2021-09-18 14:37:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-09-18 14:37:39 +0000 |
| commit | d6cd2c6c877110748296760aefddc21a0ea1d316 (patch) | |
| tree | a9d40afc34fef4aef248f8bc3a04a92b4765cc50 /Cargo.lock | |
| parent | 23afad6e7f0ff17320411a274f3a3beb92452235 (diff) | |
| parent | 4d151d92deaf86280b4c96cdc7c6f1a58927bd00 (diff) | |
| download | rust-d6cd2c6c877110748296760aefddc21a0ea1d316.tar.gz rust-d6cd2c6c877110748296760aefddc21a0ea1d316.zip | |
Auto merge of #82183 - michaelwoerister:lazier-defpathhash-loading2, r=wesleywiser
Simplify lazy DefPathHash decoding by using an on-disk hash table. This PR simplifies the logic around mapping `DefPathHash` values encountered during incremental compilation to valid `DefId`s in the current session. It is able to do so by using an on-disk hash table encoding that allows for looking up values directly, i.e. without deserializing the entire table. The main simplification comes from not having to keep track of `DefPathHashes` being used during the compilation session.
Diffstat (limited to 'Cargo.lock')
| -rw-r--r-- | Cargo.lock | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock index c9ceb06fa7d..35eac402190 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2322,6 +2322,15 @@ dependencies = [ ] [[package]] +name = "odht" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b18a8d1c919d3e7b5c49708d08ef7d60bc2150a7c3a8244257c54ca3f625010" +dependencies = [ + "cfg-if 1.0.0", +] + +[[package]] name = "once_cell" version = "1.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -3859,6 +3868,7 @@ version = "0.0.0" name = "rustc_hir" version = "0.0.0" dependencies = [ + "odht", "rustc_ast", "rustc_data_structures", "rustc_feature", @@ -4045,6 +4055,7 @@ name = "rustc_metadata" version = "0.0.0" dependencies = [ "libc", + "odht", "rustc_ast", "rustc_attr", "rustc_data_structures", |
