16 references to DefaultPool
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
PooledObjects\CustomObjectPool`1.cs (2)
11
protected const int DefaultPoolSize =
DefaultPool
.DefaultPoolSize;
12
protected const int DefaultMaximumObjectSize =
DefaultPool
.DefaultMaximumObjectSize;
Microsoft.CodeAnalysis.Razor.Compiler (12)
Language\AllowedChildTagDescriptorBuilder_Pooling.cs (1)
12
DefaultPool
.Create(static () => new AllowedChildTagDescriptorBuilder());
Language\BoundAttributeDescriptorBuilder_Pooling.cs (1)
12
DefaultPool
.Create(static () => new BoundAttributeDescriptorBuilder());
Language\BoundAttributeParameterDescriptorBuilder_Pooling.cs (1)
12
DefaultPool
.Create(static () => new BoundAttributeParameterDescriptorBuilder());
Language\DefaultRazorTagHelperContextDiscoveryPhase_Pooling.cs (2)
13
private static readonly ObjectPool<TagHelperDirectiveVisitor> s_tagHelperDirectiveVisitorPool =
DefaultPool
.Create<TagHelperDirectiveVisitor>();
14
private static readonly ObjectPool<ComponentDirectiveVisitor> s_componentDirectiveVisitorPool =
DefaultPool
.Create<ComponentDirectiveVisitor>();
Language\Legacy\ClassifiedSpanVisitor.cs (2)
16
public const int MaximumObjectSize =
DefaultPool
.DefaultMaximumObjectSize * 32;
18
private static readonly ObjectPool<ClassifiedSpanVisitor> Pool =
DefaultPool
.Create(static () => new ClassifiedSpanVisitor(), poolSize: 5);
Language\Legacy\LegacySyntaxNodeExtensions.ChildSyntaxListReversedEnumeratorStack.cs (1)
23
private static readonly ObjectPool<ChildSyntaxList.Reversed.Enumerator[]> s_stackPool =
DefaultPool
.Create(Policy.Instance);
Language\RequiredAttributeDescriptorBuilder_Pooling.cs (1)
12
DefaultPool
.Create(static () => new RequiredAttributeDescriptorBuilder());
Language\Syntax\SyntaxNode.Iterators.cs (1)
97
private static readonly ObjectPool<ChildSyntaxList.Enumerator[]> StackPool =
DefaultPool
.Create(Policy.Instance);
Language\TagHelperDescriptorBuilder_Pooling.cs (1)
13
DefaultPool
.Create(static () => new TagHelperDescriptorBuilder());
Language\TagMatchingRuleDescriptorBuilder_Pooling.cs (1)
12
DefaultPool
.Create(static () => new TagMatchingRuleDescriptorBuilder());
Microsoft.CodeAnalysis.Razor.Workspaces (2)
Extensions\RazorCodeDocumentExtensions_ClassifiedSpans.cs (2)
46
public const int MaximumObjectSize =
DefaultPool
.DefaultMaximumObjectSize * 32;
48
private static readonly ObjectPool<ClassifiedSpanVisitor> s_pool =
DefaultPool
.Create(static () => new ClassifiedSpanVisitor(), poolSize: 5);