about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-02-10 10:04:46 +0000
committerbors <bors@rust-lang.org>2016-02-10 10:04:46 +0000
commit32d962d16fc0abcb63fd705b3cde35025da77a13 (patch)
tree83c11b86f064ec9855dc31811d8eb082b5e6f4d3 /src/libstd/sys/unix/stack_overflow.rs
parent523fa1331eda875136d3a980a5d51c7706f23f30 (diff)
parentaeb3aba951bca3307a1cbb7d1882437091e8070b (diff)
downloadrust-32d962d16fc0abcb63fd705b3cde35025da77a13.tar.gz
rust-32d962d16fc0abcb63fd705b3cde35025da77a13.zip
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
```
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions