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

60 second hang when building large visual studio solutions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 2.4.3
    • Fix Version/s: None
    • Component/s: Qt/MSBuild
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      At work, we have a very large number of projects within our solution (600+) and the Qt Visual Studio Tools extension is causing VIsual Studio to hang for up to a minute when building.

      I used another instance of Visual Studio to profile the build step and it looks like it is constantly calling HelperFunctions.ProjectsInSolution (up to 50,000 times) inside DteEventsHandler.cs buildEvents_OnBuildDone.

      I think by moving the call to HelperFunctions.ProjectsInSolution outside the scope of both loops it would reduce the number of calls significantly. It is impossible for that list of projects to change inside the event handler anyway.

      A further improvement would be to cache a list of Qt projects and update it in the ProjectAdded and ProjectRemoved solution events.

      Unfortunately, I do not have time to build the extension from scratch at the moment to submit a pull request/patch but I can provide extra information if necessary.

        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:
            fun4jimmy James Whitworth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes