diff options
| author | Michał Kostrubiec <fractalfirdev@gmail.com> | 2025-02-27 16:05:01 +0100 |
|---|---|---|
| committer | Michał Kostrubiec <fractalfirdev@gmail.com> | 2025-02-27 16:11:39 +0100 |
| commit | e100fd4d52c2e0f7a02c8237da5a65ea3e8c6d31 (patch) | |
| tree | e27473030cfa66fce77d51a593e4033ca5cf3ed1 | |
| parent | 96cfc75584359ae7ad11cc45968059f29e7b44b7 (diff) | |
| download | rust-e100fd4d52c2e0f7a02c8237da5a65ea3e8c6d31.tar.gz rust-e100fd4d52c2e0f7a02c8237da5a65ea3e8c6d31.zip | |
Changed the dependency graph to start preallocated with 128 capacity
| -rw-r--r-- | compiler/rustc_query_system/src/dep_graph/graph.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/graph.rs b/compiler/rustc_query_system/src/dep_graph/graph.rs index 5e6bee1dbd5..6ece01c211b 100644 --- a/compiler/rustc_query_system/src/dep_graph/graph.rs +++ b/compiler/rustc_query_system/src/dep_graph/graph.rs @@ -1299,12 +1299,11 @@ impl Default for TaskDeps { #[cfg(debug_assertions)] node: None, reads: EdgesVec::new(), - read_set: FxHashSet::default(), + read_set: FxHashSet::with_capacity_and_hasher(128, Default::default()), phantom_data: PhantomData, } } } - // A data structure that stores Option<DepNodeColor> values as a contiguous // array, using one u32 per entry. struct DepNodeColorMap { |
