Hi, I am implementing the lexer for an editor I am working on inside the container itself, simply because it makes it easier to share various data structures around which are needed by the lexer as well as other parts of the editor.
Lexing inside the container however seems noticeably slower than internal Scintilla-based lexers. The problem seems to be that SCI_SETSTYLING are slower than calls to styler.ColourTo. At the moment, I am working around this problem when loading large source files by styling blocks of text and passing them to the editor using SCI_ADDSTYLEDTEXT, which is considerably faster (using SCI_SETSTYLING et. al. only when styling individual lines as the user modifies them) Are there any ways I can improve performance for container-based lexers? Regards, Robert. _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
