sonarlint-visualstudio icon indicating copy to clipboard operation
sonarlint-visualstudio copied to clipboard

Investigate performance bottlenecks at startup

Open duncanp-sonar opened this issue 2 years ago • 1 comments

Description

Users have reported slowness and gold bars at startup attributed to SonarLint.

It's likely that most performance issues will relate to multiple versions of VS, although it seems to have become more visible with VS2022 due to the more performant nature of VS2022.

Related ticket: #2770

See:

  • https://community.sonarsource.com/t/sonarlint-freezes-visual-studio-2022-after-solution-is-loaded/53123
  • https://marketplace.visualstudio.com/items?itemName=SonarSource.SonarLintforVisualStudio2022&ssr=false#review-details

TODO:

  • [ ] repro the issue
  • [ ] check startup operations are being executed an appropriate thread i.e. nothing on the UI thread that doesn't need to be
  • [ ] check that non-essential startup operations are deferred as long as possible (e.g. no need to load telemetry immediately, check whether language-specific initialization can be deferred further)

duncanp-sonar avatar Nov 15 '21 08:11 duncanp-sonar

I just commented on #2770, but figured I'd comment here as well: I'd be happy to supply logs, if it'd help, as we're seeing slowdowns on startup and shutdown as well as when running VS.

Eli-Black-Work avatar Apr 07 '22 05:04 Eli-Black-Work

I experience slowdown as well when I begin typing and intellisense is supposed to pop up with suggestions. When SonarLint installed and active, it adds a very noticeable 0.5-1.0 second delay before intellisense appears. Disabling the plugin causes the delay to be removed entirely.

jschnurer avatar Feb 20 '23 15:02 jschnurer

@jschnurer this ticket is about startup issues, which wouldn't include typing/IntelliSense. It is possible that the fix for #2798 released yesterday will help in your case. If not, please open a thread in the community forum and provide as much info as possible about the issue (e.g. versions of VS and SLVS, languages analyzed etc). Thanks.

Edit: @jschnurer FYI I've created a separate ticket to track IntelliSense delays: #3792. If you could provide any additional information to help us identify the issue we would be very grateful.

duncanp-sonar avatar Feb 23 '23 12:02 duncanp-sonar