9 writes to Constraint
Microsoft.CodeAnalysis (3)
Diagnostic\CommonMessageProvider.cs (1)
114
Constraint
= "Frequently called by error list filtering; avoid allocations")]
Diagnostic\Diagnostic.cs (1)
492
Constraint
= "In most cases, AdditionalLocations is empty.",
Syntax\SyntaxNodeExtensions_Tracking.cs (1)
195
[PerformanceSensitive("https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1320760",
Constraint
= "Avoid large object heap allocations")]
Microsoft.CodeAnalysis.CSharp (6)
BoundTree\UnboundLambda.cs (2)
525
Constraint
= "Avoid " + nameof(ConcurrentDictionary<(NamedTypeSymbol, bool), BoundLambda>) + " which has a large default size, but this cache is normally small.")]
530
Constraint
= "Avoid " + nameof(ConcurrentDictionary<ReturnInferenceCacheKey, BoundLambda>) + " which has a large default size, but this cache is normally small.")]
Compilation\CSharpSemanticModel.cs (1)
1876
Constraint
= "Provide " + nameof(ArrayBuilder<Symbol>) + " capacity to reduce number of allocations.")]
Declarations\DeclarationTable.cs (1)
152
Constraint
= "Avoid " + nameof(SingleNamespaceOrTypeDeclaration.Location) + " since it has a costly allocation on this fast path.")]
Symbols\Metadata\PE\PENamespaceSymbol.cs (1)
64
Constraint
= "Provide " + nameof(ArrayBuilder<Symbol>) + " capacity to reduce number of allocations.",
Syntax\SyntaxFacts.cs (1)
571
[PerformanceSensitive("https://github.com/dotnet/roslyn/pull/66970",
Constraint
= "Use Green nodes for walking to avoid heavy allocations.")]