Skip to content

Replace isinstance checks by type == in ParamHolder #1282

@leofang

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.

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