Skip to content

Use vec::view when possible #2880

Closed
Closed

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.

Activity

  1. ghost assigned on Jul 26, 2012
  2. removed their assignment
    on Jun 16, 2014
  3. added a commit that references this issue on May 11, 2023
  4. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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