9 writes to Constraint
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
77
Constraint
= "Most trees do not have using alias directives, so avoid the expensive " + nameof(CSharpExtensions.GetSymbolInfo) + " call for this case.")]
Microsoft.CodeAnalysis.Features (1)
AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
88
Constraint
= "Reading editorconfig options is expensive and should be avoided if a syntax-based fast path exists.")]
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.cs (1)
90
[PerformanceSensitive("https://github.com/dotnet/roslyn/issues/54400",
Constraint
= "Avoid calling GetAllHostStateSets on this hot path.")]
Microsoft.CodeAnalysis.Workspaces (6)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
251
[PerformanceSensitive("https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1224834",
Constraint
= "Avoid Regex splitting due to high allocation costs.")]
Shared\TestHooks\AsynchronousOperationListener.cs (1)
45
Constraint
= "Cannot use async/await because it produces large numbers of first-chance cancellation exceptions.")]
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (3)
398
Constraint
= "Avoid calling " + nameof(CodeAnalysis.Solution.GetProject) + " to avoid realizing all projects.")]
433
Constraint
= "Avoid calling " + nameof(CodeAnalysis.Solution.GetProject) + " to avoid realizing all projects.")]
482
Constraint
= "Update ConvertedProjectReferences in place to avoid duplicate list allocations.")]
Workspace\Solution\SolutionState.CompilationTracker.cs (1)
541
Constraint
= "Avoid calling " + nameof(Compilation.AddSyntaxTrees) + " in a loop due to allocation overhead.")]