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.

Activity

  1. added this to the cuda.core backlog milestone on Nov 21, 2025
  2. added
    enhancement
    triage
    cuda.core
    on Nov 21, 2025
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.coreenhancementtriage

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions