From c0584506e3c4ffda8acec3011b4bf3794ba48f7f Mon Sep 17 00:00:00 2001 From: aidan <9562836+crossstarcross@users.noreply.github.com> Date: Wed, 14 Aug 2024 08:51:18 -0600 Subject: [PATCH] Fix members being exponentially overpopulated leading to perf issues (#7) --- src/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/init.lua b/src/init.lua index fa32b0a..95cfc28 100644 --- a/src/init.lua +++ b/src/init.lua @@ -5,13 +5,13 @@ An easy to use and functional interface for processing and accessing Roblox API dump data. ]=] -local T = require(script["init.d"]) local NONE = require(script.Util.None) +local T = require(script["init.d"]) -local FetchDump = require(script.FetchDump) local Array = require(script.Util.Array) -local Filter = require(script.Filter) local Class = require(script.Class) +local FetchDump = require(script.FetchDump) +local Filter = require(script.Filter) local Dump = {} @@ -184,7 +184,7 @@ end function Dump:constructRawClass(class: T.Class): T.ClassWithInheritance local finalDescendant = class - local memberAncestry = finalDescendant.Members + local memberAncestry = table.clone(finalDescendant.Members) local nextAncestorClassName = finalDescendant.Superclass local ancestorNames = {}