about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2016-01-27 00:35:03 +0100
committerUlrik Sverdrup <bluss@users.noreply.github.com>2016-01-27 00:35:03 +0100
commitaeb3aba951bca3307a1cbb7d1882437091e8070b (patch)
treeaafdcd755cb13a7a1a4b9d3fef686adc77316107 /src/libstd/sys/unix/stack_overflow.rs
parentd3174ce75112a52082580065b041f8f4330fefa5 (diff)
downloadrust-aeb3aba951bca3307a1cbb7d1882437091e8070b.tar.gz
rust-aeb3aba951bca3307a1cbb7d1882437091e8070b.zip
collections: Use slices 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