Eric Promislow
2013-10-24 22:51:53 UTC
A customer sent us a single-line file that's taking a long time
to be processed by our UDL lexer (which reads in state-machines
for processing languages).
I noticed the lexer was spending much of its time in LexAccessor::Fill.
The UDL lexer calls styler.Flush() whenever it needs to access previous
states. I do this because I found if I don't call styler.Flush() I often
get zero values for recently set styles. However, I don't see why startPos
needs to be reset. I commented out that line of code, and don't see any
problems.
- Eric
to be processed by our UDL lexer (which reads in state-machines
for processing languages).
I noticed the lexer was spending much of its time in LexAccessor::Fill.
The UDL lexer calls styler.Flush() whenever it needs to access previous
states. I do this because I found if I don't call styler.Flush() I often
get zero values for recently set styles. However, I don't see why startPos
needs to be reset. I commented out that line of code, and don't see any
problems.
- Eric
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.