Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issues with CodeNav in Visual Studio 2019 #132

Open
Bergam64 opened this issue Feb 3, 2022 · 2 comments
Open

Performance issues with CodeNav in Visual Studio 2019 #132

Bergam64 opened this issue Feb 3, 2022 · 2 comments
Assignees

Comments

@Bergam64
Copy link

Bergam64 commented Feb 3, 2022

Hello Samir,

I need to report serious performance issues when using CodeNav v8.8.32 running on VS 2019 v16.11.4.

CodeNav generally makes VS 2019 significantly slow (compared to when CodeNav is disabled), e.g.

  • When opening a file.
  • When switching document (<Alt+Tab>).
  • When splitting a document view in 2 (with the button above the right-hand scrollbar).
  • When saving.
  • ...

I've been using CodeNav since VS 2019 was released and I don't remember such severe issues in the past.

Note: I typically have 20 to 40 C# files open in VS, in case that matters.

Now and then, I even get bad performance warnings from VS, like the following one:
Visual Studio stopped responding for 7 seconds. Disabling the extension CodeNav 2019 8.8.32 might help.

Please investigate. I suggest you to do some serious code profiling to find out which part of CodeNav turns out to be slow and/or too memory hungry. I would also make sure that any event handler you may have is properly unregistered when needed, to avoid having them being still called when you no longer expect it. Just my 2 cents.

Best regards,
Didier

@sboulema
Copy link
Owner

sboulema commented Feb 3, 2022

Unfortunately the slowdown is a known issue that I am still trying to solve.
You can read some more here on which options might be a workaround for you: https://github.com/sboulema/CodeNav/wiki/Options

@sboulema sboulema self-assigned this Feb 3, 2022
@HTD
Copy link

HTD commented Feb 3, 2022

IDK if it would be useful, but the biggest slowdown occurs each time the files are saved. Either by Save or SaveAll command, or when some refactoring is done. If CodeNav does reloading on an instance that isn't currently visible - maybe that's the good place to mitigate the problem? When a project is opened, everything works quite normal. But then when more files are opened and closed - here's when it starts to slow down. I open a very small file, just 20 LOC. I press Ctrl+S and VS just chokes while saving.

sboulema pushed a commit that referenced this issue Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants