4DBug
a3409405d8
Performance: widest line cached (recomputed only when the document or tab size changed, from per-line column counts cleared by insertText/deleteText), Bracketeer:update tests the opener/closer tables before the colour, the last getSectionText result kept until the document version or range changes (the selected text handed to the IME / text proxy every frame), scratch glyph position in renderText, @native on the per-glyph loops (glyphColumns, lineColumns, maxLineColumns, getGlyphWidth, Bracketeer:update, isBracketCandidate, renderText, docPos2VisPos, renderMatchingBracketLines); tests/t_caches.luau checks the caches against fresh computations (3000-line Lua file, headless --roblox, lib med: idle 12.4 -> 1.4 ms, typing every frame 22.7 -> 6.3 ms; draw data unchanged incl. scroll/typing/selection/drag, LÖVE draw data unchanged)
2026-10-21 03:27:04 -05:00
..
Performance: widest line cached (recomputed only when the document or tab size changed, from per-line column counts cleared by insertText/deleteText), Bracketeer:update tests the opener/closer tables before the colour, the last getSectionText result kept until the document version or range changes (the selected text handed to the IME / text proxy every frame), scratch glyph position in renderText, @native on the per-glyph loops (glyphColumns, lineColumns, maxLineColumns, getGlyphWidth, Bracketeer:update, isBracketCandidate, renderText, docPos2VisPos, renderMatchingBracketLines); tests/t_caches.luau checks the caches against fresh computations (3000-line Lua file, headless --roblox, lib med: idle 12.4 -> 1.4 ms, typing every frame 22.7 -> 6.3 ms; draw data unchanged incl. scroll/typing/selection/drag, LÖVE draw data unchanged)
2026-10-21 03:27:04 -05:00