8 writes to Constraint
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
71Constraint = "Most trees do not have using alias directives, so avoid the expensive " + nameof(CSharpExtensions.GetSymbolInfo) + " call for this case.")]
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
88Constraint = "Reading editorconfig options is expensive and should be avoided if a syntax-based fast path exists.")]
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)
42Constraint = "Cannot use async/await because it produces large numbers of first-chance cancellation exceptions.")]
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (3)
545Constraint = "Avoid calling " + nameof(CodeAnalysis.Solution.GetProject) + " to avoid realizing all projects.")] 594Constraint = "Avoid calling " + nameof(CodeAnalysis.Solution.GetProject) + " to avoid realizing all projects.")] 642Constraint = "Update ConvertedProjectReferences in place to avoid duplicate list allocations.")]
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
310Constraint = "Avoid calling " + nameof(Compilation.AddSyntaxTrees) + " in a loop due to allocation overhead.")]