vb.net – How long should variable renaming take in Visual Studio 2019/2022?


I’m working on a fairly large Visual Basic project in Visual Studio 2019/2022 (about 600 MB in size). When renaming variables, the process is extremely slow. Previously, a single rename could take over 7 minutes, and sometimes the IDE would even freeze or crash.

For context:

The variable I renamed had 200+ references across multiple files in the solution.

On a similar project in Visual Studio 2010, the same rename takes only around 5 seconds.

My question:

Is 30 seconds a reasonable time for renaming a variable in a project of this size in VS 2019/2022, or should I expect it to be faster with proper configuration or hardware?

After some troubleshooting,I went to:
Tools → Options → Text Editor → Visual Basic → Advanced
and disabled the following options:

Enable Razor Pull Diagnostics

Enable Pull Diagnostics

Click here for screenshot

With these changes, the performance improved significantly. The same rename operation now completes in about 30 seconds.

Leave a Reply

Your email address will not be published. Required fields are marked *