dotnet/runtime

System.Reflection.Metadata: Avoid allocations in custom attribute parser

Open

#16,724 opened on Mar 16, 2016

View on GitHub
 (8 comments) (0 reactions) (0 assignees)C# (5,445 forks)batch import
area-System.Reflection.Metadataenhancementhelp wantedtenet-performance

Repository metrics

Stars
 (17,886 stars)
PR merge metrics
 (Avg merge 12d 11h) (661 merged PRs in 30d)

Description

The custom attribute parser allocates an ImmutableArray for FixedArguments and NamedArguments.

We should explore options to parse these lazily and avoid the array allocation.

Contributor guide