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
|
|
@ -9,6 +9,7 @@ local Log = require(Packages.Log)
|
|||
local Highlighter = require(Packages.Highlighter)
|
||||
local StringDiff = require(script:FindFirstChild("StringDiff"))
|
||||
|
||||
local Timer = require(Plugin.Timer)
|
||||
local Theme = require(Plugin.App.Theme)
|
||||
|
||||
local CodeLabel = require(Plugin.App.Components.CodeLabel)
|
||||
|
|
@ -74,6 +75,7 @@ function StringDiffVisualizer:calculateContentSize()
|
|||
end
|
||||
|
||||
function StringDiffVisualizer:calculateDiffLines()
|
||||
Timer.start("StringDiffVisualizer:calculateDiffLines")
|
||||
local oldString, newString = self.props.oldString, self.props.newString
|
||||
|
||||
-- Diff the two texts
|
||||
|
|
@ -133,6 +135,7 @@ function StringDiffVisualizer:calculateDiffLines()
|
|||
end
|
||||
end
|
||||
|
||||
Timer.stop()
|
||||
return add, remove
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue