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

Clang Model: code completion speed regression

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 3.6.0-beta1, Qt Creator 4.0.0-beta1
    • Fix Version/s: Qt Creator 3.6.0
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:

      Windows 8, VS2013 x86, clang 3.6.2

      Description

      Qt Creator 3.5.1 on subsequent code completions gets faster with the second code completion.

      Qt Creator 3.7.0 (master branch) takes the same amount of time for the same code completion command e.g. "this->".

      I used Lyx project to test this regression: git clone git://git.lyx.org/lyx

      My CMake configure parameters were:

      -DLYX_DEPENDENCIES_DOWNLOAD -DLYX_USE_QT=QT5 -DCMAKE_PREFIX_PATH=c:\Qt\Qt5.5.1\5.5\msvc2013\lib\cmake\
      

      Went to the last method in Text3.cppText::inDescriptionItem and added a this->. Took like ~6 seconds to
      get the popup (older i7 2.6GHz CPU). During the ~6 seconds I didn't see any Windows wait cursor.

      On Qt Creator master on every this-> I get like ~6 seconds.

      With Qt Creator 3.5.1 the first time is slow the next times are way faster, like one second.

      I've used the same libclang.dll for both Qt Creator 3.5.1 and Qt Creator 3.7.0 (master), the latter shouldn't be ~6x slower.

        Attachments

        For Gerrit Dashboard: QTCREATORBUG-15365
        # Subject Project Status CR V

          Activity

            People

            • Assignee:
              bubke Marco Bubke
              Reporter:
              cadam Cristian Adam
            • Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes