mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 22:11:38 +00:00
Refactor stress test files to enhance clarity and performance
- Removed unnecessary references to LargeTreeGenerator in multiple stress test files, streamlining the code. - Simplified loop iterations by replacing index variables with underscores for unused values, improving readability. - Updated the diff logic in the reify and diff tests to eliminate unused patch variables, enhancing performance and clarity. - Ensured consistent formatting across stress test files for better maintainability.
This commit is contained in:
parent
d513ab16c0
commit
09a0f95d53
8 changed files with 12 additions and 20 deletions
|
|
@ -185,7 +185,7 @@ return function()
|
|||
instanceMap:insert(rootId, root)
|
||||
|
||||
-- Apply 10 consecutive patches
|
||||
for i = 1, 10 do
|
||||
for _ = 1, 10 do
|
||||
local patch = PatchGenerator.createAdditionsPatch({
|
||||
count = 5,
|
||||
parentId = rootId,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ return function()
|
|||
local InstanceMap = require(script.Parent.Parent.InstanceMap)
|
||||
local PatchSet = require(script.Parent.Parent.PatchSet)
|
||||
local applyPatch = require(script.Parent.Parent.Reconciler.applyPatch)
|
||||
local diff = require(script.Parent.Parent.Reconciler.diff)
|
||||
local encodeInstance = require(script.Parent.Parent.ChangeBatcher.encodeInstance)
|
||||
local testUtils = require(script.Parent.Parent.testUtils)
|
||||
local PatchGenerator = testUtils.PatchGenerator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue