Skip to content

Use vec::view when possible #2880

Closed
Closed
@eholk

Description

@eholk

vec::slice allocates a new vector, when in most cases vec::view would be better since it doesn't have to allocate anything. Currently region inference makes this tricky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lifetimesArea: Lifetimes / regionsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions