Changed the dependency graph to start preallocated with 128 capacity
This commit is contained in:
parent
96cfc75584
commit
e100fd4d52
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue