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:
1 parent
158fa3d3f0
commit
0ec772ee30
5 files changed
+153
-28
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user