Rich edit view speed
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have an application with several rich edit views, and one of them is used as a running log. When two or more additional rich edit views are opened, the log slows right down; the slowdown happens in the view rather than in the code generating the log. All of the rich edit views in the application use SetSelectionCharFormat() to set character formatting; if I comment out the calls in the log, which are to colour text and underline links, it runs at full speed. Should I:
- Optimise the calls to SetSelectionCharFormat() to remove calls that repeat the existing format or where no text is output using them?
- Use RTF streaming instead of SetSelectionCharFormat?
- Buffer the log instead of displaying it continuously?
- Abandon rich edit views for another technique altogether?