KEMBAR78
RuntimeType.GetGenericTypeDefinition() performance issue · Issue #73860 · dotnet/runtime · GitHub
Skip to content

RuntimeType.GetGenericTypeDefinition() performance issue #73860

@israellot

Description

@israellot

RuntimeType.GetGenericTypeDefinition() is a bit expensive.
As in a Dictionary<type,type> cache lookup is faster.
I would naively expect that the generic definition of a type is stored in a field of the constructed type and GetGenericTypeDefinition to be a simple field access.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions