mirror of
https://github.com/gorules/zen.git
synced 2026-10-04 16:02:18 +00:00
perf: add table indexing
This commit is contained in:
@@ -17,7 +17,7 @@ impl PyZenDecisionContent {
|
||||
let mut content: DecisionContent =
|
||||
serde_json::from_str(data).context("Failed to parse JSON")?;
|
||||
if let DecisionContent::Graph(g) = &mut content {
|
||||
g.compile();
|
||||
Arc::make_mut(g).compile();
|
||||
}
|
||||
Ok(Self(Arc::new(content)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user