1
Fork 0

Changed the dependency graph to start preallocated with 128 capacity

This commit is contained in:
Michał Kostrubiec 2025-02-27 16:05:01 +01:00
parent 96cfc75584
commit e100fd4d52

View file

@ -1299,12 +1299,11 @@ impl Default for TaskDeps {
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
node: None, node: None,
reads: EdgesVec::new(), reads: EdgesVec::new(),
read_set: FxHashSet::default(), read_set: FxHashSet::with_capacity_and_hasher(128, Default::default()),
phantom_data: PhantomData, phantom_data: PhantomData,
} }
} }
} }
// A data structure that stores Option<DepNodeColor> values as a contiguous // A data structure that stores Option<DepNodeColor> values as a contiguous
// array, using one u32 per entry. // array, using one u32 per entry.
struct DepNodeColorMap { struct DepNodeColorMap {