Skip to content

Commit

Permalink
Auto merge of rust-lang#104205 - clubby789:grow-rc, r=thomcc
Browse files Browse the repository at this point in the history
Attempt to reuse `Vec<T>` backing storage for `Rc/Arc<[T]>`

If a `Vec<T>` has sufficient capacity to store the inner `RcBox<[T]>`, we can just reuse the existing allocation and shift the elements up, instead of making a new allocation.
  • Loading branch information
bors committed Nov 17, 2022
2 parents 7e4d2c4 + f0f922c commit a0ddc2a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit a0ddc2a

Please sign in to comment.