diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2026-01-15 06:24:41 +0200 |
|---|---|---|
| committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2026-01-15 06:24:41 +0200 |
| commit | 04db46f0b12c894983fdb1bb783fbad9d5a11943 (patch) | |
| tree | dbc9903b400d5bdda4f318f1d56ad8c39bbfb70d /indra/newview/llscripteditor.cpp | |
| parent | 69cdf5c0f584617ef57a7168a64ee52f64451b12 (diff) | |
#5278 Reduce reallocs
Diffstat (limited to 'indra/newview/llscripteditor.cpp')
| -rw-r--r-- | indra/newview/llscripteditor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
