dotnet / linker

388 stars 127 forks source link

Improve WellKnownType checking performance #3065

Open jtschuster opened 1 year ago

jtschuster commented 1 year ago

We could improve IsTypeOf(WellKnownType) and GetWellKnownType performance by caching the types in LinkContext and comparing MetadataToken for IsTypeOf instead of a string comparison on namespace and name.