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:
Joe 2026-02-01 22:14:59 -06:00
parent d513ab16c0
commit 09a0f95d53
8 changed files with 12 additions and 20 deletions

View file

@ -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,

View file

@ -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