summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrew Productengine <adyukov@productengine.com>2010-12-13 13:17:48 +0200
committerAndrew Productengine <adyukov@productengine.com>2010-12-13 13:17:48 +0200
commitd3eccbcd8b9bc51b1a940325509b9508c3697391 (patch)
treebf9867800e3436a5ac858c2dd366ec0089412ff1 /doc
parente27bcbe0d20c87556b0bcb1e3feaaea6544d3e16 (diff)
STORM-229 FIXED Fixed long loading times and stalling of Viewer while loading big scripts or pasting a lot of text into script.
The bug was fixed by Satomi Ahn. Here is the description of what causes the problem from her comment in ticket: "Disabling the loading of syntax keywords in LLScriptEdCore::postBuild() removes the freeze (and with it: syntax highlighting). So it obviously comes from the parsing of the text. I also noticed something else: by adding a llwarn in LLTextEditor::updateSegments(), I saw that this function was called a lot of times when loading a script, roughly once for each line in the script (naively I would have thought only necessary to update when finished... or to only update the new line). My llwarn was in the "if (mReflowIndex < S32_MAX && mKeywords.isLoaded())", which means that, at each call, the text is actually parsed for all keywords... so the parsing of the script becomes quadratic instead of linear!!!" - To fix this, Satomi added a flag depending on which parsing is disabled when it is not necessary.
Diffstat (limited to 'doc')
-rw-r--r--doc/contributions.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/contributions.txt b/doc/contributions.txt
index 4c33834a46..67683204e2 100644
--- a/doc/contributions.txt
+++ b/doc/contributions.txt
@@ -607,6 +607,7 @@ Sammy Frederix
VWR-6186
Satomi Ahn
STORM-501
+ STORM-229
Scrippy Scofield
VWR-3748
Seg Baphomet