Details
-
Technical task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
Do we really need to use a sorted container i.e QMap<int, Token> ?
For now, this was the choice to prevent relatively expensive semantic analysis for ScriptIdentifierExpression if the highlighted token container already added its highlights in another dom element visit.
Investigate if we can just use std::vector<Token> with std::sort and std::unique pattern just before encoding the tokens.