rust/src/libcollectionstest
bors b2f4c5c596 Auto merge of #31224 - bluss:deque-hashing, r=Gankro
Hash VecDeque in its slice parts

Use .as_slices() for a more efficient code path in VecDeque's Hash impl.

This still hashes the elements in the same order.

Before/after timing of VecDeque hashing 1024 elements of u8 and
u64 shows that the vecdeque now can match the Vec
(test_hashing_vec_of_u64 is the Vec run).

```
before

test test_hashing_u64        ... bench:  14,031 ns/iter (+/- 236) = 583 MB/s
test test_hashing_u8         ... bench:   7,887 ns/iter (+/- 65) = 129 MB/s
test test_hashing_vec_of_u64 ... bench:   6,578 ns/iter (+/- 76) = 1245 MB/s

after

running 5 tests
test test_hashing_u64        ... bench:   6,495 ns/iter (+/- 52) = 1261 MB/s
test test_hashing_u8         ... bench:     851 ns/iter (+/- 16) = 1203 MB/s
test test_hashing_vec_of_u64 ... bench:   6,499 ns/iter (+/- 59) = 1260 MB/s
```
2016-01-27 16:25:36 +00:00
..
btree Make btree_set::{IntoIter, Iter, Range} covariant 2016-01-18 07:53:12 -05:00
bench.rs More test fixes 2015-04-14 10:14:19 -07:00
binary_heap.rs std: Remove deprecated functionality from 1.5 2015-12-10 11:47:55 -08:00
enum_set.rs Implement RFC 839 2015-06-08 12:05:33 +02:00
fmt.rs std: Clean out #[deprecated] APIs 2015-03-31 15:49:57 -07:00
lib.rs std: Stabilize APIs for the 1.6 release 2015-12-05 15:09:44 -08:00
linked_list.rs Remove all unstable deprecated functionality 2015-08-12 14:55:17 -07:00
slice.rs Fix warnings during tests 2016-01-26 09:29:28 -08:00
str.rs Auto merge of #30740 - bluss:ascii-is-the-best, r=brson 2016-01-16 01:18:48 +00:00
string.rs Minor code cleanup. 2015-09-28 19:21:18 -06:00
vec.rs Remove all unstable deprecated functionality 2015-08-12 14:55:17 -07:00
vec_deque.rs collections: Hash VecDeque in its slice parts 2016-01-27 00:04:03 +01:00