Hi,
In my application, I'm using the Document of SyntaxEditor to do some parsing for me. Since it's constructed in such a brilliant way, this makes it very easy to use the Document class to your advantage, when parsing files - I'm loving it! :)
However, for a feature that I'm creating, I need really fast parsings. I have debugged my code, and I can see that the line where I set the Text property of the Document takes at least 100 milliseconds, even for pretty small documents. I have already disabled Outlining, LineModificationMarking and SemanticParsing, as described in the documentation. I have not disabled LexicalParsing, since I'm using the tokens to provide the data I need. Is there anything else I can do? Is there another way of setting the text of the document which will make it any faster? I noticed that the difference between setting a 50 line document and a 900 line document is not that big, so I thought that there may be a smarter way. Any performance tips for me? :)
In my application, I'm using the Document of SyntaxEditor to do some parsing for me. Since it's constructed in such a brilliant way, this makes it very easy to use the Document class to your advantage, when parsing files - I'm loving it! :)
However, for a feature that I'm creating, I need really fast parsings. I have debugged my code, and I can see that the line where I set the Text property of the Document takes at least 100 milliseconds, even for pretty small documents. I have already disabled Outlining, LineModificationMarking and SemanticParsing, as described in the documentation. I have not disabled LexicalParsing, since I'm using the tokens to provide the data I need. Is there anything else I can do? Is there another way of setting the text of the document which will make it any faster? I noticed that the difference between setting a 50 line document and a 900 line document is not that big, so I thought that there may be a smarter way. Any performance tips for me? :)