From 04db46f0b12c894983fdb1bb783fbad9d5a11943 Mon Sep 17 00:00:00 2001 From: Andrey Lihatskiy Date: Thu, 15 Jan 2026 06:24:41 +0200 Subject: #5278 Reduce reallocs --- indra/newview/llscripteditor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indra/newview/llscripteditor.cpp') diff --git a/indra/newview/llscripteditor.cpp b/indra/newview/llscripteditor.cpp index 68c4077b89..2a4c2b9d0b 100644 --- a/indra/newview/llscripteditor.cpp +++ b/indra/newview/llscripteditor.cpp @@ -443,6 +443,7 @@ void LLScriptEditor::queueSyntaxApply(LLWString text, resetPendingSyntaxApply(); + // Small updates can apply synchronously; larger ones use background slices. constexpr size_t kImmediateOpsThreshold = 500; if (ops.size() <= kImmediateOpsThreshold) { @@ -481,6 +482,7 @@ void LLScriptEditor::processPendingSyntaxApply() return; } + // Slice sizes control UI budget while applying large highlight updates. constexpr size_t kOpsPerSlice = 250; constexpr size_t kSegmentsPerSlice = 250; -- cgit v1.3