Skip to content

Slice operation does a copy. #5

@prataprc

Description

@prataprc

Since it is not possible to take a owned slice of Vec from original Vec without copying, current implementation of slicing works by copying the inner items. This can be optimized by creating a new type similar to Vec that maintains the root-pointer of allocation along with the data pointer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions