Skip to content

minimize polymorphism in the codec pipeline? #3703

@d-v-b

Description

@d-v-b

we have a very expensive isinstance check in the codec pipeline:

as_array_like = chunk_bytes.as_array_like()
. We need to remove this check, and I would suggest going further -- we should check if our strategy of supporting CPU and CUDA memory with the same codecs is compatible with getting the best performance for either type. I don't think supporting CUDA (used by a minority of users) is worth any measurable performance penalty for folks using CPU memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions