Revision 760045
Go back to digest for 13th January 2008Optimization in KDE Base
Maks Orlovich committed changes in /branches/KDE/4.0/kdelibs/kdeui/sonnet:
Fix some of the major performance problems this causes in textareas in KHTML by not computing spelling correction suggestions when none are needed, as they are extremely expensive to compute... Doesn't help kmail since it does connect the signal...
A better option would be to do the computation on demand.
Also fix a clear logic error, and making word counting make sense some of the time and not none of the time.
This class needs heavy work, however. It rehighlights the entire document when one presses enter. The word counting is still bogus between rehighlights. It hardcodes black when switching the error off... IOW, it needs love from someone with good understanding of QSyntaxHighlighter
File Changes
Modified 2 files
- /branches/KDE/4.0/kdelibs/kdeui/sonnet
- /highlighter.cpp
- /highlighter.h
2 files changed in total