Robert Knight: > 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?
SCI_SETSTYLINGEX transfers a block of style values without disrupting text. The WindowAccessor class buffers styling changes and sends them to Scintilla as a block using SCI_SETSTYLINGEX. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
