Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-1772

deleting large selections in C++ files takes ages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 2.1.0
    • None
    • Editors
    • None
    • linux x64
    • 62db6c18c7f1f60819783ed5e1340e9fc09e072e

    Description

      To reproduce: open qwidget.cpp, select all, delete. The operation will complete eventually, but take a very long time.

      This is related to the increased QTextCursor usage by the C++ editor. Profiling shows that most of the time is spent in QList<QTextCursorPrivate*>::contains, called by QTextDocumentPrivate::adjustDocumentChangesAndCursors. Maybe make changedCursors a QSet if the order does not matter?

      This problem does not exist in 2.0.0.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mae mae
            ckamm Christian Kamm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes