revert: fix(graph): avoid repeatedly child of the same parent (#21ed76f)

- we had performance issues on benchmark `update 500->1 graph`
This commit is contained in:
ernisto 2025-04-11 12:52:45 -03:00
parent 3478640636
commit ecbdae6389

View file

@ -81,7 +81,6 @@ local function assert_stable_scope(): Node<unknown>
end end
local function push_child<T>(parent: SourceNode<any>, child: Node<any>) local function push_child<T>(parent: SourceNode<any>, child: Node<any>)
if table.find(child.parents, parent) then return end
table.insert(parent, child) table.insert(parent, child)
table.insert(child.parents, parent) table.insert(child.parents, parent)
end end