make parallelism optional

This commit is contained in:
Evan Almloff committed 2023-02-02 08:57:23 -06:00
1 parent 687cdf2cac
commit 2f6b8393f8
3 files changed
+14 -5

No files matched your search

+5 -1
View File
@@ -439,6 +439,7 @@ impl<V: FromAnyValue + Send + Sync> RealDom<V> {
pub fn update_state(
&mut self,
ctx: SendAnyMap,
parallel: bool,
) -> (FxDashSet<NodeId>, FxHashMap<NodeId, NodeMask>) {
let passes = std::mem::take(&mut self.passes_updated);
let nodes_updated = std::mem::take(&mut self.nodes_updated);
@@ -452,7 +453,10 @@ impl<V: FromAnyValue + Send + Sync> RealDom<V> {
}
}
(resolve_passes(self, dirty_nodes, ctx), nodes_updated)
(
resolve_passes(self, dirty_nodes, ctx, parallel),
nodes_updated,
)
}
fn remove(&mut self, id: NodeId) {