Skip to content

Commit d95245f

Browse files
authored
Merge pull request #7895 from MicrosoftDocs/main637853295254406487
For protected CLA branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents b3d29e7 + fb6c3b0 commit d95245f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/ide/visual-studio-performance-tips-and-tricks.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Tips to improve performance
33
description: Learn how to optimize certain Visual Studio features that you might not be using to help improve performance.
44
ms.custom: SEO-VS-2020
5-
ms.date: 10/01/2021
5+
ms.date: 04/11/2022
66
ms.topic: conceptual
77
author: TerryGLee
88
ms.author: tglee
@@ -84,12 +84,16 @@ Some tools or extensions can be turned off to improve performance.
8484

8585
For information about .NET Compiler Platform ("Roslyn") performance considerations, see [Performance considerations for large solutions](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Performance-considerations-for-large-solutions.md).
8686

87+
::: moniker range="vs-2017"
88+
8789
- **Disable full solution analysis**
8890

8991
Visual Studio performs analysis on your entire solution in order to provide a rich experience about errors before invoking a build. This feature is useful to identify errors as soon as possible. However, for large solutions, this feature can consume significant memory resources. If you’re experiencing memory pressure or similar issues, you can disable this experience to free up these resources. By default, this option is enabled for Visual Basic and disabled for C#.
9092

9193
To disable **Full Solution Analysis**, choose **Tools** > **Options** > **Text Editor**, then select either **Visual Basic** or **C#**. Choose **Advanced** and deselect **Enable full solution analysis**.
9294

95+
::: moniker-end
96+
9397
- **Disable CodeLens**
9498

9599
Visual Studio performs a **Find All References** task on each method as it is displayed. CodeLens provides features such as the inline display of the number of references. The work is performed in a separate process such as *ServiceHub.RoslynCodeAnalysisService32*. In large solutions, or on resource-constrained systems, this feature can have a significant impact on performance. If you’re experiencing memory issues, for example, when loading a large solution on a 4-GB machine, or high CPU usage for this process, you can disable CodeLens to free up resources.

0 commit comments

Comments
 (0)