You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The document structure currently suffers from a significant performance issue. Whenever the document structure is refreshed (by calling refreshDocumentStructure(), that process takes a significant amount of time (over 100 ms). It has already been "optimized" in such a way that the document structure is not updated every time the user types something by checking whether an update to the document structure is actually necessary, but some actions (like undoing or redoing) still require a document structure refresh because it is not conventionally possible to check what changed after those actions. For instance, holding CTRL+Z currently results in significant lag after each undo.
To fix this, either
diagnose the performance issues with refreshDocumentStructure() and, if possible, fix them
make the refreshDocumentStructure() function asynchronous
find a different way to accurately represent the document's structure without having to manually rebuild its structure each time a bigger change is made.
Previously the text document would only re-count the words for a given
segment if it found a word separator in front or behind it. This
approach was flawed, though. Due to the fact that there is no way to
retrieve the character sequence that was added or removed, it is
impossible to accurately determine whether the text change included a
word separator or not.
By always re-counting the words, for instance, opening and closing
comments now always count correctly.
This is likely to have some performance impact, but initial tests did
not see an immediate problem. Any further problems will likely be
resolved by #38.
The document structure currently suffers from a significant performance issue. Whenever the document structure is refreshed (by calling
refreshDocumentStructure()
, that process takes a significant amount of time (over 100 ms). It has already been "optimized" in such a way that the document structure is not updated every time the user types something by checking whether an update to the document structure is actually necessary, but some actions (like undoing or redoing) still require a document structure refresh because it is not conventionally possible to check what changed after those actions. For instance, holding CTRL+Z currently results in significant lag after each undo.To fix this, either
refreshDocumentStructure()
and, if possible, fix themrefreshDocumentStructure()
function asynchronousThis issue is a part of #32.
The text was updated successfully, but these errors were encountered: