rust/src/libcollectionstest
bors 32d962d16f Auto merge of #31420 - bluss:deque-equality, r=Gankro
collections: Use slice parts in PartialEq for VecDeque

This improves == for VecDeque by using the slice representation.

This will also improve further if codegen for slice comparison improves.

Benchmark run of 1000 u64 elements, comparing for equality (all equal).
Cpu time to compare the vecdeques is reduced to less than 50% of what it
was before.

```
test test_eq_u64       ... bench:  1,885 ns/iter (+/- 163) = 4244 MB/s
test test_eq_new_u64   ... bench:    802 ns/iter (+/- 100) = 9975 MB/s
```
2016-02-10 10:04:46 +00:00
..
btree test: Deny warnings in {core,collections}test 2016-01-30 16:19:37 -08:00
bench.rs
binary_heap.rs std: Remove deprecated functionality from 1.5 2015-12-10 11:47:55 -08:00
enum_set.rs
fmt.rs
lib.rs test: Deny warnings in {core,collections}test 2016-01-30 16:19:37 -08:00
linked_list.rs Remove all unstable deprecated functionality 2015-08-12 14:55:17 -07:00
slice.rs test: Deny warnings in {core,collections}test 2016-01-30 16:19:37 -08:00
str.rs Add tests for Cow::from for strings, vectors and slices 2016-02-03 20:45:30 +01:00
string.rs test: Deny warnings in {core,collections}test 2016-01-30 16:19:37 -08:00
vec_deque.rs collections: Use slices parts in PartialEq for VecDeque 2016-01-27 00:35:03 +01:00
vec.rs Add tests for Cow::from for strings, vectors and slices 2016-02-03 20:45:30 +01:00