perf: rbxmx / XML decode 2.5x: Types.object keeps the key order in the object's own metatable (no global weak map insert), XML fast paths for plain attributes / text / end tags, utf8.len validation, rbxmx components read in order

This commit is contained in:
4DBug committed 2026-11-01 19:00:12 -06:00
1 parent 158fa3d3f0
commit 0ec772ee30
5 files changed
+153 -28

No files matched your search

+4
View File
@@ -573,6 +573,10 @@ do
if j < 0 then j = #s + j + 1 end
local n = 0
while i <= j do
local h = string.find(s, "[\128-\255]", i)
if not h or h > j then return n + j - i + 1 end
n = n + h - i
i = h
local c, l = dec(s, i)
if not c then return nil, i end
n = n + 1