
We are migrating SyntaxEditor from Winform to WPF.
We have a lexer performance problem that we implemented.
The lexer implements ILexer, and we registered several providers to SyntaxLanguage.
The lexer performance is average 1.16ms per one lexical parse to get 10 token results.
We feel delay when we paste 10 lines of codes to the editor that is using the SyntaxLanguage.
In present state, the sequence of parsing call is lexical parse -> semantic parse -> lexical parse from tagger.
Winfom SyntaxEditor does not call the lexer frequently and there is no performance problem.
We use same lexer codes on WPF and we have performance issue.
Do you have any way to reuse the lexical parse results that we parsed last time?
And, what is key point to implement for performance?
And, we would like to know what we can do to improve the performance?
[Modified 7 years ago]