mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Optimize indexes() and values()
This commit is contained in:
parent
37e8e05206
commit
452ca383f7
11 changed files with 320 additions and 260 deletions
|
|
@ -3,7 +3,7 @@ type Node<T> = graph.Node<T>
|
|||
type SourceNode<T> = graph.SourceNode<T>
|
||||
local create_node = graph.create_node
|
||||
local evaluate_node = graph.evaluate_node
|
||||
local push_child_to_scope = graph.push_child_to_scope
|
||||
local push_scope_as_child_of = graph.push_scope_as_child_of
|
||||
local destroy = graph.destroy
|
||||
local assert_stable_scope = graph.assert_stable_scope
|
||||
local push_scope = graph.push_scope
|
||||
|
|
@ -53,7 +53,7 @@ local function switch<T, U>(source: () -> T): (map: Map<T, ((() -> U)?)>) -> ()
|
|||
evaluate_node(node)
|
||||
|
||||
return function()
|
||||
push_child_to_scope(node)
|
||||
push_scope_as_child_of(node)
|
||||
return node.cache
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue