fix: eliminate deep Element cloning in @if by using &[&Element] references

This commit is contained in:
Glint Dev
2026-07-22 13:35:12 +03:00
parent fd2863678b
commit be6d5c36fc
2 changed files with 16 additions and 10 deletions

View File

@@ -55,8 +55,9 @@ impl GlintApp {
}
let dirty_set = self.doc.tracker.take_dirty_set();
let root_refs: Vec<&Element<'static>> = self.doc.roots.iter().collect();
self.vdom_roots = Interpreter::evaluate_vdom_incr(
&self.doc.roots,
&root_refs,
&mut self.doc.variables,
&self.doc.components,
&self.rhei,