Skip to content

Add realloc based TexelBuffer<T>::into_vec(self) -> Vec<T> #49

Open
@HeroicKatora

Description

@HeroicKatora

This can be more efficient than use to_owned() on a deref'd slice. By letting the allocator decide if the allocation can be reused with a different alignment, it can elide a memcpy operation in some cases. Presumably, at least a lot of cases. Other alignment-aware allocators may be able to just move the allocation to a new bucket instead.

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