Store document node inputs in Arc to reduce memory consumption (#3086)

Store values in memo hash contanier in arc
This commit is contained in:
Dennis Kobert
2025-08-23 17:24:41 +02:00
committed by GitHub
parent 469f0a6c30
commit 354bf93364
3 changed files with 11 additions and 9 deletions
+2 -1
View File
@@ -392,7 +392,8 @@ impl<'input> Node<'input, DAny<'input>> for UpcastNode {
type Output = FutureAny<'input>;
fn eval(&'input self, _: DAny<'input>) -> Self::Output {
Box::pin(async move { self.value.clone().into_inner().to_dynany() })
let memo_clone = MemoHash::clone(&self.value);
Box::pin(async move { memo_clone.into_inner().as_ref().clone().to_dynany() })
}
}
impl UpcastNode {