diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-07-06 10:20:24 (GMT) |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2010-07-06 10:20:24 (GMT) |
commit | f62f6effab8d1551d8e5e5843dc478addee96de1 (patch) | |
tree | 1d47256a1ad69d967b2c4227dfdd15207d195cf0 /src/gui/text/qtextcursor_p.h | |
parent | 7e35c6ff442e237ff9a1bec9ea1cdfb597d9ceae (diff) | |
download | Qt-f62f6effab8d1551d8e5e5843dc478addee96de1.zip Qt-f62f6effab8d1551d8e5e5843dc478addee96de1.tar.gz Qt-f62f6effab8d1551d8e5e5843dc478addee96de1.tar.bz2 |
Fix performance of QTextDocumentPrivate::adjustDocumentChangesAndCursors
As the changedCursors list grew large, the function used to spend an
extraordinate amount of time in QList::contains.
The fix removes the changedCursors list outright and replaces it with a
flag in QTextCursorPrivate.
Done-with: mae
Diffstat (limited to 'src/gui/text/qtextcursor_p.h')
-rw-r--r-- | src/gui/text/qtextcursor_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qtextcursor_p.h b/src/gui/text/qtextcursor_p.h index 4e36b95..4b3262f 100644 --- a/src/gui/text/qtextcursor_p.h +++ b/src/gui/text/qtextcursor_p.h @@ -114,6 +114,7 @@ public: int currentCharFormat; uint visualNavigation : 1; uint keepPositionOnInsert : 1; + uint changed : 1; }; QT_END_NAMESPACE |