Skip to content

Remove MakeGenericMethod from the query hot path #27437

@roji

Description

@roji

When calling terminating operators such as Single, Average, we currently call MakeGenericMethod, which is slow; when running a basic tracking query + update against InMemory, this (and the related GetGenericArguments) take up around 0.6% of the running time with Npgsql, around 6% with InMemory.

We could probably follow the runtime's pattern to get rid of this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions