mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
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:
parent
3478640636
commit
ecbdae6389
1 changed files with 0 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue