Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-64

Adding header files to a project with many configurations is VERY slow in VS 2010

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 1.1.7, 1.1.8, 1.1.9
    • Fix Version/s: 2.2.0
    • Component/s: General
    • Labels:
      None
    • Environment:

      Windows XP SP3, Visual Studio 2010, Quad Core Xeon, 3.5 GB RAM

    • Commits:
      5d758a7b90274152d62149d7d52d832dbeb77cd0

      Description

      When adding a header file to a Visual Studio project that has many project configurations, Visual Studio 2010 will become unresponsive for a long period of time, though eventually will succeed at adding the header file and all necessary moc files.

      With about 6 configurations it takes around 2 minutes to become responsive again, with 30 configurations it takes about 20 minutes to respond after adding one header file. This time increases if you add multiple header files at the same time.

      To reproduce:

      • Get a VS 2010 project that has many configurations
      • Find a header file that will require moc'ing
      • Add the existing header file to the project by right clicking on the Header Files folder in the directory, and saying add existing file.

      Not sure what takes it so long, but if it were possible to make the process multi-threaded so that adding multiple files at the same time went faster, that would be a huge improvement over the current state.

      This issue becomes a real annoyance when you add a new configuration to a project, and the moc steps are not automatically created for the the existing header files in the project (maybe another bug should be written for this issue). So to have the moc steps created for the new configurations we remove all the header files in the project and re-add them to the project, and this is where the slowness occurs.

        Attachments

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

          Activity

            People

            Assignee:
            mecfc Miguel Costa
            Reporter:
            brower Brian Rower
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes