Skip to content

Replace isinstance checks by type == in ParamHolder #1282

Closed

Description

@leofang

During the meeting today, @mdboom suggested that in Cython type(obj) == T is faster than isinstance(obj, T). We should profile it and make changes if this is true, since this is inside launch(s, config, ker, *args) and is a hot path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cuda.coreEverything related to the cuda.core moduleenhancementAny code-related improvementstriageNeeds the team's attention

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions