Working with a large number of files could affect the performance of Visual Studio. There are some tasks and features that you can switch off, if they are not required, to minimize the impact on performance. These are the areas that can benefit from this:
To reduce the compilation time, ensure that the following project properties are disabled, if you do not need them:
By default, Visual Studio is configured to perform a Compiler directives scan of any files you add to your projects. You can manually trigger the scan with the Determine Directives context menu command in Solution Explorer.
The automated scanning could slow down the IDE when you have a very large source code base. If you do not want the IDE to perform a directives scan, disable the feature as follows:
Working with a large code base could affect the performance of the editor. You can disable a number of settings in the IDE, if they are not in use, to help improve the performance: