granite-rust/library/alloc
Jubilee 19d9a147be
Rollup merge of #88452 - xu-cheng:vecdeque-from-array, r=m-ou-se
VecDeque: improve performance for From<[T; N]>

Create `VecDeque` directly from the array instead of inserting items one-by-one.

Benchmark
```
./x.py bench library/alloc --test-args vec_deque::bench_from_array_1000
```

* Before
```
test vec_deque::bench_from_array_1000                    ... bench:       3,991 ns/iter (+/- 717)
```

* After
```
test vec_deque::bench_from_array_1000                    ... bench:         268 ns/iter (+/- 37)
```
2021-10-04 13:58:08 -07:00
..
benches Rollup merge of #88452 - xu-cheng:vecdeque-from-array, r=m-ou-se 2021-10-04 13:58:08 -07:00
src Rollup merge of #88452 - xu-cheng:vecdeque-from-array, r=m-ou-se 2021-10-04 13:58:08 -07:00
tests implement advance_(back_)_by on more iterators 2021-09-30 21:23:28 +02:00
Cargo.toml rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00