Posted 21 years ago
by Jake Pearson
-
Software Developer,
Alion Science and Technology

Hi,
I am using the Syntax Editor ( really like it). My program has a large number of small snippets of C# in it. I have a search window that hunts through my document tree (reflexively) looking for string properties. When I hit one, I have been passing the string to a hidden instance of the SyntaxEditor then using its MarkAll function to get all of the places where the find string occurs. The problem is that assigning to SyntaxEditor.Document.Text is relatively slow (according to my code profiler).
I have called SuspendLayout() and SuspendPainting() on the control. Are there any other things I can turn off to improve the performance. I do not need any rendering, or parsing. Mainly I just want to use the SyntaxEditor to get line/column numbers.
thanks,
Jake Pearson
I am using the Syntax Editor ( really like it). My program has a large number of small snippets of C# in it. I have a search window that hunts through my document tree (reflexively) looking for string properties. When I hit one, I have been passing the string to a hidden instance of the SyntaxEditor then using its MarkAll function to get all of the places where the find string occurs. The problem is that assigning to SyntaxEditor.Document.Text is relatively slow (according to my code profiler).
I have called SuspendLayout() and SuspendPainting() on the control. Are there any other things I can turn off to improve the performance. I do not need any rendering, or parsing. Mainly I just want to use the SyntaxEditor to get line/column numbers.
thanks,
Jake Pearson