Small Speed Improvement

This commit is contained in:
phoriah
2024-11-12 03:33:33 +02:00
parent 7abd62240c
commit c76d4f9a8a

View File

@@ -2116,7 +2116,7 @@ local function synsaveinstance(CustomOptions, CustomOptions2)
local function ReturnValueAndTag(raw, valueType, descriptor)
local value, tag = (descriptor or XML_Descriptors[valueType])(raw)
return value, tag == nil and valueType or tag
return value, tag or valueType
end
local function InheritsFix(fixes, className, instance)
@@ -2533,7 +2533,7 @@ local function synsaveinstance(CustomOptions, CustomOptions2)
end
end
value = "-- Saved by UniversalSynSaveInstance https://discord.gg/wx4ThpAsmw\n\n"
value = "-- Saved by UniversalSynSaveInstance (Join to Copy Games) https://discord.gg/wx4ThpAsmw\n\n"
.. (hasLinkedSource and "-- Original Source: https://assetdelivery.roblox.com/v1/asset/?" .. (LinkedSource_type or "id") .. "=" .. (LinkedSource or LinkedSource_Url) .. "\n\n" or "")
.. value
end
@@ -2697,7 +2697,7 @@ local function synsaveinstance(CustomOptions, CustomOptions2)
RecoveredScripts
) .. "\n" or "")
.. [[
Thank you for using UniversalSynSaveInstance https://discord.gg/wx4ThpAsmw.
Thank you for using UniversalSynSaveInstance (Join to Copy Games) https://discord.gg/wx4ThpAsmw.
If you didn't save in Binary (rbxl) - it's recommended to save the game right away to take advantage of the binary format & to preserve values of certain properties if you used IgnoreDefaultProperties setting (as they might change in the future).
You can do that by going to FILE -> Save to File As -> Make sure File Name ends with .rbxl -> Save