6 writes to Constraint
Microsoft.CodeAnalysis.Workspaces (6)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
250
[PerformanceSensitive("https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1224834",
Constraint
= "Avoid Regex splitting due to high allocation costs.")]
Shared\TestHooks\AsynchronousOperationListener.cs (1)
43
Constraint
= "Cannot use async/await because it produces large numbers of first-chance cancellation exceptions.")]
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (3)
545
Constraint
= "Avoid calling " + nameof(CodeAnalysis.Solution.GetProject) + " to avoid realizing all projects.")]
588
Constraint
= "Avoid calling " + nameof(CodeAnalysis.Solution.GetProject) + " to avoid realizing all projects.")]
637
Constraint
= "Update ConvertedProjectReferences in place to avoid duplicate list allocations.")]
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
306
Constraint
= "Avoid calling " + nameof(Compilation.AddSyntaxTrees) + " in a loop due to allocation overhead.")]