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

Creator gets unresponsive when inserting new lines in huge C++ files

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. Open huge file (I used sqlite3.c from <creator src>/src/libs/3rdparty/sqlite)
      2. Make sure cursor is positioned at the beginning of the file
      3. Insert a new line by pressing enter

      After that Qt Creator freezes for several minutes here.

      I put a scoped pointer into ClangFormatForwardingIndenter::indent and it also takes around 200ms for big files like the texteditor.cpp

      All measurements and tests have been done with a release version of Qt Creator and ClangFormat. It gets notably worse when using debug builds of those.

      This is not reproducible if Qt Creator is started without the ClangFormat plugin.

      Attachments

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

        Activity

          People

            artem.sokolovskii Artem Sokolovskii
            davschul David Schulz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes