mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Add benchmarking, perf gains, and better settings UI (#850)
This commit is contained in:
parent
cf25eb0833
commit
8ff064fe28
10 changed files with 380 additions and 197 deletions
|
|
@ -4,6 +4,7 @@ local Packages = Rojo.Packages
|
|||
|
||||
local Roact = require(Packages.Roact)
|
||||
|
||||
local Timer = require(Plugin.Timer)
|
||||
local Assets = require(Plugin.Assets)
|
||||
local Theme = require(Plugin.App.Theme)
|
||||
|
||||
|
|
@ -21,6 +22,7 @@ function Array:init()
|
|||
end
|
||||
|
||||
function Array:calculateDiff()
|
||||
Timer.start("Array:calculateDiff")
|
||||
--[[
|
||||
Find the indexes that are added or removed from the array,
|
||||
and display them side by side with gaps for the indexes that
|
||||
|
|
@ -63,6 +65,7 @@ function Array:calculateDiff()
|
|||
j += 1
|
||||
end
|
||||
|
||||
Timer.stop()
|
||||
return diff
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue