Skip to content

SRTP with large overload sets and errors leads to very high compilation load #9201

@abelbraaksma

Description

@abelbraaksma

EDIT (22 May): A repro that exhibits the likely cause of this bug (albeit not exactly the described sluggish behavior), was finally found by me after a week or so and 70+ helpful comments and traces. Instead of reading all, new visitors should probably just go to #9201 (comment). Please try the repro, I'm very curious whether it's reproducible.


A project that takes roughly 1 min to compile, after loading it in VS 2019, I first compiled it and then decided to measure how long it took for coloring, tooltips etc appear:

  • After about 5 minutes, coloring appears
  • About 10 or so minutes, the first type-tooltip appears
  • About 20 or so minutes, the first error (I had only the file open that would show the first error shown in the build output window)
  • Moving from one identifier to another, it takes between 30s and 2 minutes before a type popup appears
  • Similarly, the "Error list" window very slowly builds up with errors long known from compiling (just now, 42 minutes after opening, it shows 8 of 10 errors it should show).

GIF animation of first 30-something minutes, click to start from the beginning, and grab some crisps and 3 beers before you start ;).

background-processing slow

Repro steps

Reproducible with my project and possibly with other large projects, I'd be interested if others have seen similar behavior.

At 34 minutes, it showed 22 tasks in background queue
At 53 minutes, it showed 19 tasks in background queue
At 56 minutes, it showed 0 tasks (finished) and mouseovers were responsive again (until I edit anything, one letter took another 5+ minutes with 6 tasks in queue ...).

Expected behavior

While I can understand that building up the IDE can take a bit longer than a simple rebuild-all, I don't expect it to take the same time I'd normally tend to fall asleep in a Vin Diesel movie. Making the screen-capture was just about similarly entertaining ;).

Actual behavior

As described above. Slooooow. For fair comparison, I opened only one VS IDE, and disabled most, but not all, 3rd party extensions.

In the Task Manager I can see devenv.exe at 4% CPU, which is effectively one CPU core on my machine. Memory for devenv.exe in those 40+ minutes went from 1.4GB to 1.6GB. Traditionally, I only notice extreme sluggishness after it reaches 2.8GB or higher.

Known workarounds

Strangely, I don't always see this behavior, though it has been like this for a few weeks now. I'm now going to restart, remove any auxiliary files, clean everything and start afresh, see if it still happens. As it is now, it is absolutely unworkable.

Related information

I'd be very interested in getting to the bottom of this, if you need any traces (I assume you do) or anything else, I'm more than willing to provide those.

  • VS 2019 non-preview, most recent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions