Skip to content

Unnecessary allocation? #400

@nilsdeppe

Description

@nilsdeppe

It looks like this is call make_unique on what is essentially a View type. Given how expensive memory allocations are, could this type not just be constructed on the stack and then passed in?

target, size, std::make_unique<buffer::UserBuffer>(user_buf, size)

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