mirror of
https://github.com/centau/vide.git
synced 2026-08-20 23:01:37 +00:00
This commit is contained in:
parent
6f9e86c5c7
commit
d0fc816460
4 changed files with 34 additions and 25 deletions
|
|
@ -131,11 +131,11 @@ BENCH("indexes() no change", function()
|
|||
|
||||
local state = vide.source(data)
|
||||
|
||||
local _list = vide.values(state, function(v, i)
|
||||
local _list = vide.indexes(state, function(v, i)
|
||||
return {}
|
||||
end)
|
||||
|
||||
state(state()) -- fill double buffer
|
||||
--state(state()) -- fill double buffer
|
||||
|
||||
START(N)
|
||||
|
||||
|
|
@ -152,11 +152,11 @@ BENCH("indexes() all change", function()
|
|||
|
||||
local state = vide.source(data)
|
||||
|
||||
local _list = vide.values(state, function(v, i)
|
||||
local _list = vide.indexes(state, function(v, i)
|
||||
return {}
|
||||
end)
|
||||
|
||||
state(state()) -- fill double buffer
|
||||
--state(state()) -- fill double buffer
|
||||
|
||||
for i, v in data do
|
||||
data[i] = v + 1
|
||||
|
|
@ -176,7 +176,7 @@ BENCH("indexes() all remove", function()
|
|||
|
||||
local state = vide.source(data)
|
||||
|
||||
local _list = vide.values(state, function(v, i)
|
||||
local _list = vide.indexes(state, function(v, i)
|
||||
return {}
|
||||
end)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue