C++: optimize the semantic highlighting in the UI thread.
Done by reserving enough space in for the various QLists when created,
and by preventing unnecessary copying of lists.
Change-Id: I5a9f0f7042bbaa1cf5eb076b956c35f2191468c6
Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
Showing
- src/plugins/cppeditor/cppeditor.cpp 2 additions, 1 deletionsrc/plugins/cppeditor/cppeditor.cpp
- src/plugins/texteditor/semantichighlighter.cpp 5 additions, 2 deletionssrc/plugins/texteditor/semantichighlighter.cpp
- src/plugins/texteditor/syntaxhighlighter.cpp 12 additions, 10 deletionssrc/plugins/texteditor/syntaxhighlighter.cpp
- src/plugins/texteditor/syntaxhighlighter.h 1 addition, 1 deletionsrc/plugins/texteditor/syntaxhighlighter.h
Loading
Please register or sign in to comment